Displaying 1 result from an estimated 1 matches for "find_by_country".
2008 Apr 02
4
options_from_collection_for_select
...o be the first
displayed. I have tried:
<select id = "user_w_country" name ="user[w_country]" onchange =
"<%=func%>">
<%= options_from_collection_for_select @country, ''id'',
''country'', :selected => Countrycode.find_by_country(''USA'').id %>
</select>
It doesn''t complai9n about the code but it doesn''t work either. The
documentation for the options_from_collection_for_select says the third
argument is a select option, but I am obviously doing something wrong.
Any ideas? Thanks,...