I have posted before about collection_select but have not gotten what I am working on to work. I have even searched the archives for similar discussions and am at a little bit of a loss because some have claimed to have fixed the problem but I still can't get it to work for me.
What I am trying to do is simply add the :selected option to the collection_select helper. This is what I got:
<%= collection_select("user", "w_country" , Countrycode.find( :all, :order => 'country' ), :id, :country, :selected => 159573, :onchange => func ) %>
I simply want it to select the country code that has the specified id. The onchange is for when a selection is made the drop down reverts back to a link on a form. Has anyone gotten the combination of these two to work? Thanks,
-S