# Preventing newer versions from hosing rails apps

**URL:** <https://www.ruby-forum.com/t/preventing-newer-versions-from-hosing-rails-apps/108972>\
**Category:** Rails\
**Created:** [July 10, 2007, 5:30am UTC](https://www.ruby-forum.com/t/preventing-newer-versions-from-hosing-rails-apps/108972 "2007-07-10T05:30:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 10, 2007, 5:30am UTC](https://www.ruby-forum.com/t/preventing-newer-versions-from-hosing-rails-apps/108972/1 "2007-07-10T05:30:28Z")

</div>

I am starting a new rails app and want to use ActiveResource. This  
requires that I use edge rails, so I froze it to edge. However, after  
this, the environment would not load, throwing a NoMethodError for  
“options” on array.

I did some searching and found someone suggesting updating gems when  
confronted with this error. I did so and the error went away. However,  
updating the gems also pulled in rails-1.2.3.7116 and this has broken  
my other apps.

All of these other apps have the RAILS\_GEM\_VERSION constant set to  
1.2.3 in environment.rb. It appears that the rails initializer thinks  
that 1.2.3.7116 is the same as 1.2.3… which is definitely not true.

Any ideas much appreciated,

Ben

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 10, 2007, 5:44am UTC](https://www.ruby-forum.com/t/preventing-newer-versions-from-hosing-rails-apps/108972/2 "2007-07-10T05:44:29Z")

</div>

Whoops… for the subject of this I meant "Preventing new versions _of  
gems_ from hosing rails apps.

b

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 10, 2007, 9:36am UTC](https://www.ruby-forum.com/t/preventing-newer-versions-from-hosing-rails-apps/108972/3 "2007-07-10T09:36:47Z")

</div>

Figured this out… posting it for folks struggling with this down the  
line (though considering the solution, it must have been there in the  
archives somewhere… I even remember doing it a while back!).

Just use RAILS\_GEM\_VERSION=“1.2.3.0” instead of “1.2.3”. The “.0”  
forces the initializer to ignore any later “beta” versions.

b
