# Error after Rails re-installation

**URL:** <https://www.ruby-forum.com/t/error-after-rails-re-installation/115839>\
**Category:** Rails\
**Created:** [September 28, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/error-after-rails-re-installation/115839 "2007-09-28T23:46:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfrank86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@dfrank86](https://www.ruby-forum.com/u/dfrank86)\
**Post date:** [September 28, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/error-after-rails-re-installation/115839/1 "2007-09-28T23:46:19Z")

</div>

I had a couple of rails projects underway in June/July when my Macbook  
died. Yesterday I finally reinstalled Ruby 1.8.6, Rails 1.2.3 and  
Mongrel – I thought that these were all the same versions as before.  
If I create a new project everything is fine, but when I run script/  
server in any of my older projects I get the following error:

ruby script/server  
=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)  
=\> Rails application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
=\> Call with -d to detach  
=\> Ctrl-C to shutdown server  
\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment…  
Exiting  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:  
328:in `send': undefined method `session=’ for  
ActionController::Base:Class (NoMethodError)  
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/  
initializer.rb:328:in `initialize_framework_settings' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/ initializer.rb:327:in `each’  
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/  
initializer.rb:327:in `initialize_framework_settings' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/ initializer.rb:324:in `each’  
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/  
initializer.rb:324:in `initialize_framework_settings' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/ initializer.rb:96:in `process’  
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/  
initializer.rb:43:in `send' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/ initializer.rb:43:in `run’  
… 27 levels…  
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/  
commands/server.rb:39  
from /usr/local/lib/ruby/site\_ruby/1.8/rubygems/  
custom\_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require’  
from script/server:3

I imagine that I did something silly, but I am too much of a newbie to  
understand what that might be. Any suggestions?? Thanks! Dan

---

<div class="post-metadata">

**Author:** ![dfrank86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@dfrank86](https://www.ruby-forum.com/u/dfrank86)\
**Post date:** [September 29, 2007, 4:35am UTC](https://www.ruby-forum.com/t/error-after-rails-re-installation/115839/2 "2007-09-29T04:35:54Z")

</div>

dfrank86 wrote:

> =\> Ctrl-C to shutdown server  
> from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/  
> initializer.rb:43:in `run’  
> I imagine that I did something silly, but I am too much of a newbie to  
> understand what that might be. Any suggestions?? Thanks! Dan

If you look at config/environment.rb in your older projects what is  
RAILS\_GEM\_VERSION set to?

–  
Michael W.

---

<div class="post-metadata">

**Author:** ![dfrank86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@dfrank86](https://www.ruby-forum.com/u/dfrank86)\
**Post date:** [September 29, 2007, 4:58am UTC](https://www.ruby-forum.com/t/error-after-rails-re-installation/115839/3 "2007-09-29T04:58:42Z")

</div>

> If you look at config/environment.rb in your older projects what is  
> RAILS\_GEM\_VERSION set to?

Thanks Michael,

Both old and new versions are set to ‘1.2.3’

One problem was solved by commenting out the  
config.action\_controller.session block from the old config/  
environment.rb. Now I can start mongrel and migrate my development  
database:

However, now I get a Status: 500 Internal Server Error and the  
following:  
Expected ./script/…/config/…/app/helpers/all\_helper.rb to define  
AllHelper

Any ideas? I can probably create a new project and copy my files  
over, but I’m just curious about what is going wrong.

thanks – Dan
