On Nov 22, 8:05 pm, RichardOnRails
<[EMAIL PROTECTED]> wrote:
> Hi again,
>
> Wow, that's pretty neat.  Of course,  it's not quite as nice that I
> thought Rails offered with the line in config/environment.rb, namely
> overriding "RAILS_GEM_VERSION = '2.2.0' unless defined?
> RAILS_GEM_VERSION" somehow.
>
> I'm going to hold out for a little while to see if someone can tell me
> why my attempt is working.
>

First of rails -v is always going to report the latest version of
rails installed on your system. If you want to run another version of
it you can do rails _2.1.2_ for example.

Secondly the trick here is that rails has to play a slightly dirty
trick with RAILS_GEM_VERSION: it actually loads environment.rb and
pulls it apart with a regular expression to find what you've set it to
(see 
http://github.com/rails/rails/tree/master/railties%2Fenvironments%2Fboot.rb)

It's possible you've confused it with extra statements in
environment.rb

Fred
> Thanks for your suggestion,
> Richard
>
> On Nov 22, 2:03 am, Web Reservoir <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
>
> > Your problem is solved very easily.
>
> > Install Netbeans 6.5 today. It comes with an exclusive " FIRST TIME
> > FEATURE " added in this new version.
>
> > It helps you choose the rails framework at the time of creating project.
> > like Rails 1.2, 2.0.2, 2.1.2, 2.2.2 etc..
>
> > This was the most outstanding request and finally it has landed.
>
> > Hope this helps
> > --
> > Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to