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?

On 30 Dec 2007, at 07:38, David Orriss Jr wrote:

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.

Fred

Frederick C. wrote:

On 30 Dec 2007, at 07:38, David Orriss Jr wrote:

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.

Fred

Thank you Fred. I’m most grateful for the assist and information! Have
a Happy New Year.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs