Forum: Ruby on Rails Observer globals

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
72eb65fa089082d3bd8b38a5596ad331?d=identicon&s=25 Keynan Pratt (keynan)
on 2007-02-06 21:29
I would like read access to ActionController's request and session
objects inside a model observer.

any ideas?
538fa89682589ea480d524756fa0841d?d=identicon&s=25 Peter Ertl (Guest)
on 2007-02-07 01:08
(Received via mailing list)
it's called a _model_ observer, not view or controller observer...

you should rethink your application structure...

what problem do you want to solve??

2007/2/6, Keynan Pratt <>:
72eb65fa089082d3bd8b38a5596ad331?d=identicon&s=25 Keynan Pratt (keynan)
on 2007-02-07 22:03
I have an audit trail observer that updates table audit trail when ever
an asset is altered. I want to record the user_id and remote ip in the
audit trail table.
This topic is locked and can not be replied to.