Displaying 1 result from an estimated 1 matches for "prnt_id".
Did you mean:
post_id
2006 Apr 06
6
select method
...tion value="1" selected="selected">David</option>
<option value="2">Sam</option>
<option value="3">Tobias</option>
</select>
I have the following code in a _form.rhtml file:
<%= select("category", "prnt_id", Prnt.find_all.collect {|p| [p.name, p.id]},
{ :selected => ''prnt_id'' == @category.prnt_id, :include_blank => false } ) %>
The drop down is created with the correct content, but is does NOT select the
currently set value. The value is set if I use any other type o...