Setting rails version

Hello,

How do I tell rails to use a specified version when creating the
application directory structure?
I have multiple versions of rails installed through gem, but I can’t
find how to choose?

Any ideas?

thanks!
Christophe Bouhier

In your environment.rb file you should have something like the
following:

#Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = ‘2.0.1’ unless defined? RAILS_GEM_VERSION

JB

On 12/17/07, John B. [email protected] wrote:

In your environment.rb file you should have something like the
following:

#Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = ‘2.0.1’ unless defined? RAILS_GEM_VERSION

I interpret the OPs question as how do I generate a particular version
of rails directory structure.

If that’s the question the answer is to put the gem version
specification bracketed by underscores as the first argument of the
rails command

rails 1.2.6 rails126app

I think you can also do things like

rails <2.0

To get the latest version < 2.0


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

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