Webrick Server don't start after Update Rails

Hi,

After a Rails update (rails-1.1.6) , Webrick server don’t start.

Error:
Cannot find gem for Rails =1.1.4:
Install the missing gem with ‘gem install -v=1.1.4 rails’, or
change environment.rb to define RAILS_GEM_VERSION with your desired
version.

Looks normal because of the update.
A new project has no problems if I start the Webrick server.

My question:

-> How can I best solve the problem for the old projects:
Starting a new project and copy the files?
changing the files in ‘server’ dir.

 Other solutions?

After a Rails update (rails-1.1.6) , Webrick server don’t start.

Error:
Cannot find gem for Rails =1.1.4:
<…>
→ How can I best solve the problem for the old projects:
Starting a new project and copy the files?

Go to your application config/ folder and edit environment.rb.
There should be line RAILS_GEM_VERSION = ‘1.1.4’.
Change it to match current Rails version.

Regards,
Rimantas

http://rimantas.com/

Hi there,

You don’t have to create new project and copy all the files, just
update RAILS_GEM_VERSION in config/environment.rb to 1.1.6 in your old
project.

Or you can freeze rails 1.1.4 into your old projects. Run rake -T and
look for the freeze target, from memory it can take a rails version.

Cheers,
Andy

OK,

Thanks Andy!