mirror of
https://github.com/iritmaximus/brewery.git
synced 2026-10-12 19:13:49 +03:00
upto 2.10
This commit is contained in:
@@ -14,10 +14,13 @@ class BeersController < ApplicationController
|
||||
def new
|
||||
@beer = Beer.new
|
||||
@breweries = Brewery.all
|
||||
@styles = ["Weizen", "Lager", "Pale ale", "IPA", "Porter", "Lowalcohol"]
|
||||
end
|
||||
|
||||
# GET /beers/1/edit
|
||||
def edit
|
||||
@breweries = Brewery.all
|
||||
@styles = ["Weizen", "Lager", "Pale ale", "IPA", "Porter", "Lowalcohol"]
|
||||
end
|
||||
|
||||
# POST /beers or /beers.json
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
<div>
|
||||
<%= form.label :style, style: "display: block" %>
|
||||
<%= form.text_field :style %>
|
||||
<%= form.select :style, options_for_select(@styles) %>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user