# Trouble upgrading rails

**URL:** <https://www.ruby-forum.com/t/trouble-upgrading-rails/123075>\
**Category:** Rails\
**Created:** [December 13, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/trouble-upgrading-rails/123075 "2007-12-13T21:10:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Post date:** [December 13, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/trouble-upgrading-rails/123075/1 "2007-12-13T21:10:10Z")

</div>

Hi folks. I’m trying to upgrade a rails app from 1.2.4 to 2.0.1. I gem  
installed the latest rails, but when I try to run:

rake rails:gems:freeze

I get:

C:\webapps\npl\>rake rails:gems:freeze  
(in C:/webapps/npl)  
Cannot find gem for Rails =1.2.1:  
Install the missing gem with ‘gem install -v=1.2.1 rails’, or  
change environment.rb to define RAILS\_GEM\_VERSION with your desired  
version.

I’m on win32 running ruby 1.8.6. I had rails frozen in my app at 1.2.4.  
I’ve tried changing RAILS\_GEM\_VERSION in environment.rb from 1.2.4 to  
2.0.1 and uncommenting, seems to make no difference.

I’m quite puzzled as to why rake, and indeed, any of the rails tasks  
(ruby script\console, for instance) are all failing while looking for  
rails 1.2.1; I don’t believe I’ve ever used that particular version.  
That mystery aside, any suggestions for upgrading, other than creating a  
new rails project anew and copying the relevant files over?

- donald
