This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/views/beers/_beer_form.rhtml

17 lines
609 B
Plaintext
Raw Normal View History

<p>
<label for="beer_title">Title</label> <%= text_field 'beer', 'title' %>
</p>
<p>
<label for="beer_abv">ABV</label> <%= text_field 'beer', 'abv' %>
</p>
<p>
<label for="beer_original_gravity">Original Gravity</label> <%= text_field 'beer', 'original_gravity' %>
</p>
<p>
<label for="beer_final_gravity">Final Gravity</label> <%= text_field 'beer', 'final_gravity' %>
</p>
<p>
<label for="brewery_title">Brewery</label> <%= text_field_with_auto_complete('brewery', 'title', {}, { :url => { :controller => 'autocomplete', :action => 'index' } }) %>
</p>
<%= render :partial => 'pages/page_form' %>