AR Sessions
Joshua Miller
elefantstn at gmail.com
Thu Jul 10 11:01:09 EDT 2008
Hi all,
I have a little camping micro-blog that's working well with the cookie
session store, but falls over when I try to use the AR session store.
The changes I made were:
require 'camping/session' becomes require 'camping/ar/session'
module Blog; include Camping::Session; end becomes module Blog;
include Camping::ARSession; end
and I did the create_schema in Blog.create.
It set up the session table correctly, it adds a new row with a
session id and sets a cookie on the browser correctly, but it never
saves anything to the session state hash. Do I need to do something
differently to make @state save itself? Using the cookie session
store, changes are saved anytime I do something to @state, which is
how I would expect it to work.
I'm using the latest version from why's git repo with the default sqlite setup.
Thanks!
Josh
More information about the Camping-list
mailing list