remember style selection

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@153 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2008-02-17 22:46:07 +00:00
parent fca57cf04e
commit adacded47a
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
<label for="beer_final_gravity">Final Gravity</label> <%= text_field 'beer', 'final_gravity' %>
</p>
<p>
<label for="beer_style_id">Style</label> <%= select 'beer', 'style_id', Style.for_select, { :selected => @beer.style_id } %>
<label for="beer_style_id">Style</label> <%= select 'beer', 'style_id', Style.for_select, { :selected => @beer.style_id.to_s } %>
</p>
<p>
<label for="brewery_title">Brewery</label> <%= text_field_with_auto_complete('brewery', 'title', {}, { :url => { :controller => 'autocomplete', :action => 'index' } }) %>