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 =
   <%= options_from_collection_for_select @country, 'id',
   'country', :selected => Countrycode.find_by_country('USA').id %>

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,


Can anyone tell me if am putting the select in the right place?

If you're going to use options_from_collection_for_select it's
probably also worth using the other rails helpers as well.

<%= select_tag "user_w_country", @country, :id, :country,
Countrycode.find_by_country('USA') %>
<%= observe_field 'user_w_country', :function => func %>