I am writing an internal time tracking app, and am curious to know if
it''s possible to access the session data from an observer. Each
''user''
has a list of their current projects, which is updated (via an observer)
everytime a ''project'' or ''hour'' is saved.
To find out who the current
user is, I am trying to do a User.find(session[:user_id]) but receiving
a ''session is undefined'' error message.
To this end, I am wondering if
a) it''s possible to access session data from the observer; or
b) there''s a better way to do this?
Thanks
Phil
--
Posted via http://www.ruby-forum.com/.