Access "session" from Model


#1

Is there a way to access the session variable from the Model or
Observer? Is there a better approach?

I wanted to get the variable from the session to set the user who
created a certain record.

Thanks,

Junrey


#2

Junrey,

Consider looking at the UserStamp plugin. It does exactly what you are
looking for.

http://delynnberry.com/projects/userstamp/

V/r
Anthony E.

On 1/3/07, Junrey B. removed_email_address@domain.invalid wrote:


Posted via http://www.ruby-forum.com/.


Cell: 808 782-5046
Current Location: Melbourne, FL