Ryan Bigg wrote:
what brad suggested is the way to do it. This will select United States as the first country.
<%= form.country_select :billing_country, ["United States"] %>, its
-- Posted via http://www.ruby-forum.com/.
>
-- Ryan Bigg
Hi,
If you want to use the 'selected' option instead of putting it as a priority country, you could try this
<%= form.country_select :billing_country, , {:selected => "United States"} %>
Liang Zan
Hi,
If you want to use the 'selected' option instead of putting it as a priority country, you could try this
<%= form.country_select :billing_country, , {:selected => "United States"} %>
Liang Zan
I tried this, but still showing the first country ( afganestan ). do you have any idea about that ? thank you
Hi Please tell me how you solved it.Becasuse I have a similar problem..I am using two country_select as
<%= country_select(:contact_address1, :country) %> <%= country_select(:contact_address2, :country) %>
The above is working..But the default is Afganistan..How can I change this default to "UnitedStates"
Thanks in advance Sijo