Running old Ruby on Rails apps when you have Rails 2.x installed

Posted on 25 January 2008

If you have Rails 2.x on your local machine and you want to run an old Ruby on Rails app (on an older version of Rails) you will find that there are some files that need updating before it will start.

First you should ensure that RAILS_GEM_VERSION in environment.rb is set to the version of Rails you want to use.

And the rest is all automated, just run:

rake rails:update

Job done.

About Paul

Paul works for Kyan web design agency in Surrey, UK as a Ruby on Rails developer.

Follow Paul on Twitter

Email: paulsturgess [at] gmail.com

Read more articles in the archive →

Got something to say?