Use a nicer less error prone version of the select helper

This commit is contained in:
Shaun McDonald 2009-05-27 13:15:58 +00:00
parent 4ee48d2ad9
commit 544353a8d9

View file

@ -14,7 +14,7 @@
</tr>
<tr valign="top">
<td class="fieldName">Language:</td>
<td><%= f.select :language, Language.find(:all).map {|l| [l.name, l.code]} %></td>
<td><%= f.collection_select :language, Language.find(:all), :code, :name %></td>
</tr>
<tr valign="top">
<td class="fieldName">Location:</td>