Displaying 1 result from an estimated 1 matches for "daxnebwow".
2006 Feb 03
3
My associations are coming out nil.
...mary_key "userId"
end
and
class Country < ActiveRecord::Base
has_many :user
set_primary_key "countryId"
end
but when I inspect my user class after it has been instanciated, I get this:
inspect: #<User:0x4062a68 @attributes={"userName"=>"sese daxnebwow",
"CountryId"=>"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:...