I have a drop down of country's and I would like the USA to 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,
-S