Use a nicer less error prone version of the select helper
This commit is contained in:
parent
4ee48d2ad9
commit
544353a8d9
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue