# Rails 2.3.2 is not generating environment.rb properly

**URL:** <https://www.ruby-forum.com/t/rails-2-3-2-is-not-generating-environment-rb-properly/167752>\
**Category:** Rails\
**Created:** [May 12, 2009, 9:22am UTC](https://www.ruby-forum.com/t/rails-2-3-2-is-not-generating-environment-rb-properly/167752 "2009-05-12T09:22:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aashishkiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Post date:** [May 12, 2009, 9:22am UTC](https://www.ruby-forum.com/t/rails-2-3-2-is-not-generating-environment-rb-properly/167752/1 "2009-05-12T09:22:01Z")

</div>

problem: rails 2.3.2 is not generating  
config.action\_controller.session\_store = :active\_record\_store in  
environment.rb

## this is the code in environment.rb

# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present

RAILS\_GEM\_VERSION = ‘2.3.2’ unless defined? RAILS\_GEM\_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration

require File.join(File.dirname( **FILE** ), ‘boot’)

Rails::Initializer.run do |config|

# Settings in config/environments/\* take precedence over those

specified here.

# Application configuration should go into files in

config/initializers

# – all .rb files in that directory are automatically loaded.

# Add additional load paths for your own custom dirs

# config.load\_paths += %W( #{RAILS\_ROOT}/extras )

# Specify gems that this application depends on and have them

installed with rake gems:install

# config.gem “bj”

# config.gem “hpricot”, :version =\> ‘0.6’, :source =\>

“[http://code.whytheluckystiff.net](http://code.whytheluckystiff.net)”

# config.gem “sqlite3-ruby”, :lib =\> “sqlite3”

# config.gem “aws-s3”, :lib =\> “aws/s3”

# Only load the plugins named here, in the order given (default is

alphabetical).

# :all can be used as a placeholder for all plugins not explicitly

named

# config.plugins = [:exception\_notification, :ssl\_requirement, :all]

# Skip frameworks you’re not going to use. To use Rails without a

database,

# you must remove the Active Record framework.

# config.frameworks -= [ :active\_record, :active\_resource,

:action\_mailer ]

# Activate observers that should always be running

# config.active\_record.observers = :cacher, :garbage\_collector,

:forum\_observer

# Set Time.zone default to the specified zone and make Active Record

auto-convert to this zone.

# Run “rake -D time” for a list of tasks for finding time zone names.

config.time\_zone = ‘UTC’

# The default locale is :en and all translations from

config/locales/\*.rb,yml are auto loaded.

# config.i18n.load\_path += Dir[Rails.root.join(‘my’, ‘locales’,

‘\*.{rb,yml}’)]

# config.i18n.default\_locale = :de

end

* * *

---

<div class="post-metadata">

**Author:** ![aashishkiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Post date:** [May 12, 2009, 9:58am UTC](https://www.ruby-forum.com/t/rails-2-3-2-is-not-generating-environment-rb-properly/167752/2 "2009-05-12T09:58:17Z")

</div>

On May 12, 8:22 am, Aashish K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> problem: rails 2.3.2 is not generating  
> config.action\_controller.session\_store = :active\_record\_store in  
> environment.rb

I think that’s in an initializer these days.

Fred

---

<div class="post-metadata">

**Author:** ![aashishkiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Post date:** [May 12, 2009, 11:14am UTC](https://www.ruby-forum.com/t/rails-2-3-2-is-not-generating-environment-rb-properly/167752/3 "2009-05-12T11:14:00Z")

</div>

Frederick C. wrote:

> On May 12, 8:22ï¿½am, Aashish K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > problem: rails 2.3.2 is not generating  
> > config.action\_controller.session\_store = :active\_record\_store in  
> > environment.rb
> 
> I think that’s in an initializer these days.
> 
> Fred

* * *

thank u, it solved my problem
