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.
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.