search for: countryiso

Displaying 1 result from an estimated 1 matches for "countryiso".

Did you mean: country's
2009 Jul 18
2
Sharing controllers/models within a view
...ubmit ''Create'' %> </p> <% end %> This works as expected, however, I want to modify the form so it lists all the countries in a select box from the service_provider_countries table. In views/service_provider_countries/index.html.erb I added: <%= select ("CountryISO", "id", @service_provider_countries.map {|u| [u.ISO,u.ISO]}) %> Which works as expected, producing a select box of all the countries. However, when I copy this bit of code and put it into views/service_providers/new.html.erb it does not work, producing the error: You have a nil...