secrectcode-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Oct-11 15:13 UTC
memcached session storage not work for activerecord object ?
I use memcached to store session. It works great if store string in session, but not work if I store activerecord object. for example, [view1] <% session[:k] = "test" %> <% session[:o] = User.find(1) %> [view2] <%= session[:k] %> # test <%= session[:o] %> # nil I expect session[:o] will be object query from User.find(1), but it''s nil. any idea ? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---