I dont understand, nothing could be simpler:
class Visit < ActiveRecord::Base
def before_save
self.visited_on = "test"
end
end
Yet, if I do:
a = Visit.first
a.user_id = 5
a.save
a.visited_on
=> nil #WTF?
I know that filters must return true, but this one is... What could be the issue?