Error starting server after freezing rails

I tried to freeze Rails version 1.2.3, but after doing so I get this error when starting my development server:

./script/../config/../vendor/rails/railties/lib/initializer.rb:43:in `send': undefined method `install_gem_spec_stubs' for #<Rails::Initializer:0x2b70410> (NoMethodError)   from ./script/../config/../vendor/rails/railties/lib/initializer.rb: 43:in `run'   from ./script/../config/boot.rb:46:in `load_initializer'   from ./script/../config/boot.rb:38:in `run'   from ./script/../config/boot.rb:11:in `boot!'   from ./script/../config/boot.rb:109   from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require'   from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require'   from ./script/server:2   from -e:4:in `load'   from -e:4

Anyone have any ideas as to why this is happening? Thanks.

Hi, if you used the following command to freeze Rails:

rake rails:freeze:edge

a) update your environment.rb by making sure that it contains

RAILS_GEM_VERSION = ‘2.1.1’

b) run the following command in the root of your rails application:

rake rails:update

rake rails:freeze:gems

a) run the following command in the root of your rails application:

rake rails:update

Good luck,

-Conrad

Sounds like you've got a mismatch between the version of rails frozen
and the boot.rb in your app. rake rails:update should update boot.rb to the correct version.

Fred