rails undefined method updated?

Problem:

NoMethodError (undefined method `updated?' for my_something

Solution: Use

self.my_something

insted of

 @my_something

when assigning to object attribute supplied by belongs_to association.

Posted by wojtek Sat, 16 May 2009 14:19:00 GMT




Comments

Leave a response

Leave a comment