Upgrading InstantRails to Rails 2.2 on Windows
So I got a new Rails project and decided to try Rails 2.2 that has been released a while ago. Unfortunately, InstantRails has not been updated since Rails 2.0 and gem install rails didn't do it for me. Here is how to go.
As you might know, Rails 2.2 requires the latest version of rubygems, 1.3.1. So I tried this:
gem update --system
But I got this:
Updating RubyGems
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 503 fetching http://gems.rubyforge.org/yaml
To save time, I decided to download the rubygems-update-1.3.1.gem from RubyForge. Go get it and install it locally:
gem install rubygems-update --local
Then, update your rubygems:
update_rubygems
And ensure you got it:
gem -v
Here, I tried again:
gem install rails
But I got an error related to ActiveResource version!
What worked for me was installing it from github:
gem install rails -v 2.2.2 git://github.com/rails/rails.git
Here you are:
rails -v
Congratulations! You are on Rails 2.2.
Did you like this article? Bookmark it:
Related Articles
- Installing Mephisto 0.8.2 on Rails 2.2.2
- Upgrading InstantRails to Rails 2.2 on Windows
- Running Aptana/Eclipse and InstantRails from a USB Drive
- Thinking Sphinx in Arabic/Unicode
- Thinking Sphinx on Windows








Jorge Mario
February 9th, 2009 - 07:44 AM
great it works to me, many thanks
Alan Gunderson
June 24th, 2009 - 12:20 AM
For Windows XP Professional, SP3, to install Rails 2.3.2 into InstantRails-2.0_win I found I had to do the following: 1) Install InstantRails-2.0_win I installed it to C:\tools4\ruby\InstantRails-2.0_win 2) Set the RUBY_HOME system environment variable I set it to C:\tools4\ruby\InstantRails-2.0_win\ruby 3) Download and unzip RubyGems 1.3.1 I installed it to C:\tools4\ruby\rubygems-1.3.1 4) cd to C:\tools4\ruby\rubygems-1.3.1 5) Run the rubygems setup.rb with ruby C:\tools4\ruby\rubygems-1.3.1>ruby setup.rb 6) Check that rubgems 1.3.1 is installed C:\tools4\ruby\rubygems-1.3.1>gem -v 1.3.1 7) Get rails 2.3.2 C:\tools4\ruby\rubygems-1.3.1>gem install rails Successfully installed rake-0.8.7 Successfully installed activesupport-2.3.2 Successfully installed activerecord-2.3.2 Successfully installed actionpack-2.3.2 Successfully installed actionmailer-2.3.2 Successfully installed activeresource-2.3.2 Successfully installed rails-2.3.2 ... 8) Verify rails version >rails -v Rails 2.3.2
Eduardo Ferreira
August 22nd, 2009 - 02:08 AM
It was easier for me. I followed the steps below and it worked like a charm: 1) Download/expand/configure/start(ed) InstantRails 2.0; 2) Stopped the servers (apache/mysql) from InstantRails; 3) Opened a cmd window through InstantRails; 4) Closed InstantRails; 5) gem update --system ;Installed RubyGems 1.3.5 6) gem install rails ;Installed rake 0.8.7 and rails 2.3.3
Thomas
October 30th, 2009 - 10:12 AM
excellent tutorial. I was trying to figure out how to upgrade rails and this worked perfectly. Thank you very much!!
Changpeng
November 24th, 2009 - 05:39 AM
Thanks for the great tutorial! I was stuck on this, Instant Rails wouldn't update. "gem install rubygems-update --local" was key for me. After that, everything updates smoothly. Cheers,
Chris C
January 11th, 2010 - 02:39 PM
Nice one Eduardo Ferreira, that worked perfectly for Windows 7!