I attempted to make a toy rails 2.3.5 application in Debian 'squeeze'
that uses the database to store sessions.
My environment.rb is
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
config.action_controller.session_store = :active_record_store
config.time_zone = 'UTC'
My routes.rb is
ActionController::Routing::Routes.draw do |map|
map.root(:controller => 'application')
My views consist of app/views/application/index.html.erb which
Hello World <%= Time.zone.now %>
I removed public/index.html. I ran 'rake db:sessions:create' followed
by 'rake db:migrate' which created a table 'sessions' in the postgres
The app starts without error and brings up the 'Hello World' page. It
doesn't attempt to set a cookie and no row appears in the sessions