# Error starting server after freezing rails

**URL:** <https://www.ruby-forum.com/t/error-starting-server-after-freezing-rails/147869>\
**Category:** Rails\
**Created:** [September 6, 2008, 10:57am UTC](https://www.ruby-forum.com/t/error-starting-server-after-freezing-rails/147869 "2008-09-06T10:57:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://www.ruby-forum.com/u/dan)\
**Post date:** [September 6, 2008, 10:57am UTC](https://www.ruby-forum.com/t/error-starting-server-after-freezing-rails/147869/1 "2008-09-06T10:57:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://www.ruby-forum.com/u/dan)\
**Post date:** [September 6, 2008, 11:20am UTC](https://www.ruby-forum.com/t/error-starting-server-after-freezing-rails/147869/2 "2008-09-06T11:20:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/eada6e/32.png) [@dan](https://www.ruby-forum.com/u/dan)\
**Post date:** [September 6, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/error-starting-server-after-freezing-rails/147869/3 "2008-09-06T14:06:59Z")

</div>

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
