Forum: Ruby on Rails Question about active_record_store

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.
0c51049fb747cd60088e4878458e05d1?d=identicon&s=25 Rick Schumeyer (Guest)
on 2007-02-21 21:17
(Received via mailing list)
I am not understanding the behavior of session storage with
active_record_store.

In environment.rb, I uncommented
   config.action_controller.session_store = :active_record_store

I have this line in a controller (that does get executed)
   session[:user_id] = user.id

I would think that this should store something in the database.  But the
session table is empty:
x_development=# select * from sessions;
 id | session_id | data | updated_at
----+------------+------+------------
(0 rows)

The data seems to be stored somewhere...I'm just not sure where.  Any
ideas?
0c51049fb747cd60088e4878458e05d1?d=identicon&s=25 Rick (Guest)
on 2007-02-21 22:53
(Received via mailing list)
Never mind.  I needed to restart the server after making the change in
environment.rb.
This topic is locked and can not be replied to.