Displaying 1 result from an estimated 1 matches for "alterd".
Did you mean:
altera
2006 Apr 06
1
observer doesn''t react
...doesn''t log as expected.
i was logging as in the documentation [1]
def after_create(project)
project.logger.info("new project created")
end
after that didn''t work i tried to log the action into the database by
creating a log table and a model. after that was done i alterd the
after_create method to
def after_create(project)
log = Log.new
# set the attributes here
...
log.save
end
after creating some projects i looked in the database with the
expectation to see some entries. there were no entries.
am i doing something wrong?
[1] http://api.rubyonrails.o...