I have object person.=>#<person id: 123, name: "test", sex: "1">
when I check name value in rails 2.0.2
I got this Error:
#<NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.>
I use this way in rails 1.2.6, I can get right value "test"
but when I used:
I got the value "test"
So Now I have confused, what happen? Who Can tell me why?