# Weird Issue with Rails 2.0.2+?

**URL:** <https://www.ruby-forum.com/t/weird-issue-with-rails-2-0-2/133904>\
**Category:** Rails\
**Created:** [April 4, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/weird-issue-with-rails-2-0-2/133904 "2008-04-04T20:41:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nbnbnb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/a87d85/32.png) [@nbnbnb](https://www.ruby-forum.com/u/nbnbnb)\
**Post date:** [April 4, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/weird-issue-with-rails-2-0-2/133904/1 "2008-04-04T20:41:40Z")

</div>

Hi. I have kept my rails installation up to date. Now I have  
2.0.2.9216 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 “2.0.2.9216”, mongrel now starts up  
properly.

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.

---

<div class="post-metadata">

**Author:** ![nbnbnb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/a87d85/32.png) [@nbnbnb](https://www.ruby-forum.com/u/nbnbnb)\
**Post date:** [April 7, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/weird-issue-with-rails-2-0-2/133904/2 "2008-04-07T22:43:10Z")

</div>

On Apr 4, 11:40 am, nb [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If I modify RAILS\_GEM\_VERSION to “2.0.2.9216”, mongrel now starts up  
> properly.

It appears that if you use “gem install rails --source=http://  
[gems.rubyonrails.org/](http://gems.rubyonrails.org/)” 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  
[http://gems.rubyonrails.org](http://gems.rubyonrails.org) in your gem sources which (guessing here)  
would take priority over the gems on rubyforge.

---

<div class="post-metadata">

**Author:** ![nbnbnb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/a87d85/32.png) [@nbnbnb](https://www.ruby-forum.com/u/nbnbnb)\
**Post date:** [April 22, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/weird-issue-with-rails-2-0-2/133904/3 "2008-04-22T18:00:28Z")

</div>

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.

Thanks!

–

---

<div class="post-metadata">

**Author:** ![nbnbnb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/a87d85/32.png) [@nbnbnb](https://www.ruby-forum.com/u/nbnbnb)\
**Post date:** [April 29, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/weird-issue-with-rails-2-0-2/133904/4 "2008-04-29T20:40:14Z")

</div>

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 [gems.rubyonrails.org](http://gems.rubyonrails.org)  
got added to your sources list in the first place.

[http://forums.aptana.com/viewtopic.php?p=20485](http://forums.aptana.com/viewtopic.php?p=20485)
