Weird Issue with Rails 2.0.2+?

Hi. I have kept my rails installation up to date. Now I have installed, including a fewl older ones, back to the
original 2.0.2 release, However, I keep on getting weird problems
with newly created projects on line #44 of config/environment.rb:

config.time_zone = ‘UTC’

So I did a “sudo gem cleanup” so that only 2.0.2-9216 remains, and
created a new project, and now I have a different problem:

% rails --version
Rails 2.0.2
% rails test
… output omitted …
% cd test
% script/server
Missing the Rails 2.0.2 gem. Please gem install -v=2.0.2 rails,
update your RAILS_GEM_VERSION setting in config/environment.rb for the
Rails version you do have installed, or comment out RAILS_GEM_VERSION
to use the latest version installed.

If I modify RAILS_GEM_VERSION to “”, mongrel now starts up

It seems to me that rails behaves badly when both 2.0.2 and 2.0.2.xxxx
are both installed, possibly because /lib/rails/
version.rb isn’t keeping track of the .xxxx after 2.0.2?

Incidentally, having the .xxxx after 2.0.2 also breaks 1.0 of Aptana’s
RadRails plugin.

On Apr 4, 11:40 am, nb [email protected] wrote:

If I modify RAILS_GEM_VERSION to “”, mongrel now starts up

It appears that if you use “gem install rails --source=http://” to install rails, you get a version of edge
rails unless you specifically request version 2.0.2 (passing “-v
2.0.2” will install the current released version). You might also have in your gem sources which (guessing here)
would take priority over the gems on rubyforge.

That’s exactly it. I removed it from my gem sources list, removed and
re-installed Rails and dependencies, and I am good once more.


I’m going to guess that you’re running RadRails as your IDE.
Apparently, the current developers of RadRails recently decided to start
arbitrarily adding gem sources and forcibly imposing Edge Rails onto
people who aren’t expecting it. That’s probably how
got added to your sources list in the first place.

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