aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_controller_overview.textile
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2012-08-24 14:11:45 -0700
committerJosé Valim <jose.valim@plataformatec.com.br>2012-08-24 14:11:45 -0700
commit73c02220f83cfb181ccf99db0451983324e28804 (patch)
tree2dedca55093b5d975903c09ff8738f1a0bd1be46 /guides/source/action_controller_overview.textile
parent2c571b3f0544a6457db4818e752f4cd4bacd48b4 (diff)
parent1807384c96c553af780e98d25ab4750389233f77 (diff)
downloadrails-73c02220f83cfb181ccf99db0451983324e28804.tar.gz
rails-73c02220f83cfb181ccf99db0451983324e28804.tar.bz2
rails-73c02220f83cfb181ccf99db0451983324e28804.zip
Merge pull request #7436 from sikachu/master-remove-active_record-session_store
Extract ActiveRecord::SessionStore from Rails
Diffstat (limited to 'guides/source/action_controller_overview.textile')
-rw-r--r--guides/source/action_controller_overview.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/action_controller_overview.textile b/guides/source/action_controller_overview.textile
index 3c828735ae..f861b233d2 100644
--- a/guides/source/action_controller_overview.textile
+++ b/guides/source/action_controller_overview.textile
@@ -168,8 +168,8 @@ h3. Session
Your application has a session for each user in which you can store small amounts of data that will be persisted between requests. The session is only available in the controller and the view and can use one of a number of different storage mechanisms:
* ActionDispatch::Session::CookieStore - Stores everything on the client.
-* ActiveRecord::SessionStore - Stores the data in a database using Active Record.
* ActionDispatch::Session::CacheStore - Stores the data in the Rails cache.
+* ActionDispatch::Session::ActiveRecordStore - Stores the data in a database using Active Record. (require `activerecord-session_store` gem).
* ActionDispatch::Session::MemCacheStore - Stores the data in a memcached cluster (this is a legacy implementation; consider using CacheStore instead).
All session stores use a cookie to store a unique ID for each session (you must use a cookie, Rails will not allow you to pass the session ID in the URL as this is less secure).
@@ -187,7 +187,7 @@ If you need a different session storage mechanism, you can change it in the +con
<ruby>
# 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 "script/rails g session_migration")
+# (create the session table with "script/rails g active_record:session_migration")
# YourApp::Application.config.session_store :active_record_store
</ruby>