Displaying 1 result from an estimated 1 matches for "user_countryid".
Did you mean:
user_country_id
2006 Feb 03
3
My associations are coming out nil.
..."216", "userId"=>"122", "userIP"=>"127.0.0.1"}>
And then I get this in my page:
ActionView::TemplateError (undefined method `each'' for nil:NilClass)
on line #45 of app/views/users/_form.rhtml:
42:
43: <p><label for="user_CountryId">Countryid</label><br/>
44: <select name="user_CountryId">
45: <% @country.each do |country| %>
46: <option value="<%=country.id %>"
47: <%= '' selected'' if country.id == @user.country_id %>>
4...