Specify older Rails when 2.x is installed...?

I have multiple Rails gems installed on my system...

gem list | grep rails
rails (2.0.2, 2.0.1, 1.2.6, 1.2.5)

Now, I want to make a new application based on Rails 1.2.6. I'm
guessing that what I should have to do is something like this:

rails MyNewApp

And then in MyNewApp/config/environment.rb

Make sure the following is set for RAILS_GEM_VERSION:

RAILS_GEM_VERSION = '1.2.6' unless defined? RAILS_GEM_VERSION

Before I do anything else... correct?

Almost :slight_smile: That will do things like have a boot.rb from 2.0.2, the
javascript files from 2.0.2 and some other things like that
If you run
rails _1.2.6_ myapp

Then it will run the rails from 1.2.6 and you shouldn't have to mess
around with anything.