upto 2.13

This commit is contained in:
Aaro Koivukangas
2023-08-08 10:40:30 +03:00
parent 25a334a662
commit d6a1de554d
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
class Brewery < ApplicationRecord
has_many :beers
has_many :beers, dependent: :destroy
def print_report
puts name
+1 -1
View File
@@ -1,6 +1,6 @@
<div id="<%= dom_id brewery %>">
<h2>
<%= brewery.name %>
<%= link_to brewery.name, brewery %>
</h2>
<p>
+4
View File
@@ -12,4 +12,8 @@
<p>
<%= link_to "New rating", new_rating_path %>
<br>
<%= link_to "list of breweries", breweries_path %>
<br>
<%= link_to "list of beers", beers_path %>
</p>