On Aug 19, 4:40 am, Engine Yard <[email protected]>
wrote:
>
> Searching Google has given me this:
> <code>
> @user=CGI::Session::ActiveRecordStore::Session.find_by_session_id(@session_ 
> id).data[:user]</code>

That would have worked pre rails 2.3
>
> which does not work either. It throws an error saying: NameError
> (uninitialized constant CGI::Session::ActiveRecordStore):
>
> I am probably guessing that is because CGI::Session::ActiveRecordStore
> is a different class than ActionController::Session::AbstractStore which
> my application uses.
>
The corresponding active record class is now
ActiveRecord::SessionStore::Session

Fred

> My question is how can I search for a session object that is associated
> with a particular session_id. The sessions table is not exposed as a
> Model object hence I cannot use any kind of find method on it. There is
> a find method but it comes back with a 404 response code.
>
> Any response will be greatly appreciated.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to