small medium large xlarge

14 Aug 2009, 01:24
David John Porter (12 posts)

To help anyone else who might get stuck on sessions in the Depot app:

The info on this page ( in regard to RoR v2.3.3) in regard to sessions ( pasted below under Quote )

Should read, ‘the line to uncomment in environment.rb is now in the file session_store.rb ( located in config/initializers) now looks as follows’

Cheers Dave Porter

Quote 8.1 Sessions Page 99/107: the line to uncomment in environment.rb now looks as follows: ActionController::Base.session_store = :active_record_store Page 100/107: The setup is now done in config/initializers/session_store.rb Page 100/108: there no longer is a need to uncomment out the :secret parameter in application.rb (which is now named application_controller.rb)

14 Oct 2009, 06:50
Truls Unstad (6 posts)

Thank you so much.

So, if I have gotten this right - the steps to do this in Rails 2.3 are:

  1. Create the database using rake:
$rake db:sessions:create
$rake db:migrate
  1. Comment out the following line in config/initializers/session_store.rb
ActionController::Base.session_store = :active_record_store

And that is it (?).

You must be logged in to comment