From 9a9ec00f58765b98d43390aea19f60672647ef53 Mon Sep 17 00:00:00 2001 From: Diego Carrion Date: Fri, 17 Sep 2010 23:59:09 -0300 Subject: [PATCH 1/2] updated instructions to generate the migration for the ActiveRecord session store table --- actionpack/lib/action_controller/base.rb | 2 +- .../source/action_controller_overview.textile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 631a0f2..bd10dae 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -95,7 +95,7 @@ module ActionController # # config.action_controller.session_store = :active_record_store # - # in your config/environment.rb and run rake db:sessions:create. + # in your config/environment.rb and run script/rails g session_migration. # # == Responses # diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile index b38ae07..5c77d74 100644 --- a/railties/guides/source/action_controller_overview.textile +++ b/railties/guides/source/action_controller_overview.textile @@ -161,7 +161,7 @@ If you need a different session storage mechanism, you can change it in the +con # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information -# (create the session table with "rake db:sessions:create") +# (create the session table with "script/rails g session_migration") # YourApp::Application.config.session_store :active_record_store -- 1.6.5.2 From aa6e2435c9bb17fe426fa2fba67e69022e2b4e92 Mon Sep 17 00:00:00 2001 From: Diego Carrion Date: Sat, 18 Sep 2010 00:02:03 -0300 Subject: [PATCH 2/2] updated instructions on how to change the default session store --- actionpack/lib/action_controller/base.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index bd10dae..48308cb 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -93,9 +93,9 @@ module ActionController # * ActiveRecord::SessionStore - Sessions are stored in your database, which works better than PStore with multiple app servers and, # unlike CookieStore, hides your session contents from the user. To use ActiveRecord::SessionStore, set # - # config.action_controller.session_store = :active_record_store + # MyApplication::Application.config.session_store :active_record_store # - # in your config/environment.rb and run script/rails g session_migration. + # in your config/initializers/session_store.rb and run script/rails g session_migration. # # == Responses # -- 1.6.5.2