<% for country in @countries -%>
<% if country.id == @user.country %>
<%= country.name
%>
<% else %>
<%= country.name %>
<% end %>
<% end -%>
this produces a list of countrynames and when the user country is the
same it should select it. It does select it - but the select drop down
is showing the first entry instead of the selected one???
ehhhh…
this is not true or?
in rails is a complete country list???
I found this here:
country_select(object, method, priority_countries = nil, options = {},
html_options = {})
I build my own database with countries today:(
it seams there is a command for anything in rails
aaaahhhh… my whole day of work to build the country database is not
needed