Skip to content

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.

View the snippets archive ››

No comments have been left

Got something to say?

About

Paul is a web developer for Kyanmedia web agency. He's lucky enough to write in Ruby on Rails full-time and uses this site to post snippets of code.

Contact

my name at gmail.com

More snippets

Take a look in the archive

Need a website?

Contact my employer. Make sure to check out our portfolio of work.

Hosting

I recommend hostingrails.com