Friday, June 18, 2010

Re: [Rails] Re: How to use an active record store session model?

On 2010-06-16 08:56, Garth wrote:
> Let me know if you figure this out - I'm having the same problem.

session[:fish] = ! session[:fish]
@site_session = request.env['rack.session.record']

The fishy line, or equivalent, seems to be required to ensure that Rails creates a
session object.

I don't know that this is the best way to get the session model
object. It's pretty deranged compared to '... = session.model'.

> -- Garth

--
Nick

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate