I have a simple form. Also, as part of the form, I have a variable with an array / list of all country names. The form picks up the list just fine, however it starts with the first value, I think its Afghanistan , however I want it to start / default with United Kingdom
This is my code to select a form for countries.
<%= f.select(:country, @country_list.map { |value| [ value, value ] }) %>
I tried without success:
<%= f.select(:country, @country_list.map { |value| [ value, value ] },['United Kingdom']) %>
source share