# Config.action\_controller.session\_store = :active\_record\_store

**URL:** <https://www.ruby-forum.com/t/config-action-controller-session-store-active-record-store/170598>\
**Category:** Rails\
**Created:** [June 19, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/config-action-controller-session-store-active-record-store/170598 "2009-06-19T15:04:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mandar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@Mandar](https://www.ruby-forum.com/u/Mandar)\
**Post date:** [June 19, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/config-action-controller-session-store-active-record-store/170598/1 "2009-06-19T15:04:26Z")

</div>

Hi All,

I am new to Rails and learning rails reading ebook ‘Agile web  
development using rails’. I am doing samples given in this book  
chapter by chapter.

but I stuck when I come to Sessions chapter, they have given that to  
enable session to be Database based the line  
config.action\_controller.session\_store = :active\_record\_store is to be  
uncommented from config/environment.rb file. but I am not able to  
locate this line in my environement.rb file, What can be happened with  
my setup ??

Please help…

I am using Redhat Ent 4 with Ruby 1.8.6 and rails 2.3.2

---

<div class="post-metadata">

**Author:** ![Mandar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@Mandar](https://www.ruby-forum.com/u/Mandar)\
**Post date:** [June 19, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/config-action-controller-session-store-active-record-store/170598/2 "2009-06-19T15:11:36Z")

</div>

On Fri, Jun 19, 2009 at 1:16 PM, Mandar[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> uncommented from config/environment.rb file. but I am not able to  
> locate this line in my environement.rb file, What can be happened with  
> my setup ??
> 
> Please help…
> 
> I am using Redhat Ent 4 with Ruby 1.8.6 and rails 2.3.2

It is now found in config/initializers/session\_store.rb

Andrew T.  
[http://ramblingsonrails.com](http://ramblingsonrails.com)

[http://MyMvelope.com](http://MyMvelope.com) - The SIMPLE way to manage your savings
