Home > rails > Change default table name of session active_record_store for rails 2.3.x.

Change default table name of session active_record_store for rails 2.3.x.

October 19th, 2009

Just a little tip that can save some time. Before rails 2.3.x you should define the new table name like

CGI::Session::ActiveRecordStore::Session.set_table_name “new_table_name”

Now you have to define it like that

ActiveRecord::SessionStore::Session.set_table_name “new_table_name”

  1. February 18th, 2010 at 03:33 | #1

    Thanks for this. Helped me out heaps.

  1. No trackbacks yet.