Forum: Ruby on Rails Access "session" from Model

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Junrey B. (Guest)
on 2007-01-03 18:48
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
Anthony E. (Guest)
on 2007-01-03 19:21
(Received via mailing list)
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
This topic is locked and can not be replied to.