Upgrading to Rails 2.0
December 15th, 2007 by Benjamin Wagaman.Categorized as Ruby on Rails, how to, programming.
With Rails 2.0 out now, it’s time to explore the new source. It’s hard to believe that it’s already been 2 years since I first checked out Rails 1.0 for the first time.
To update your Rails code, you can run
gem update rails
However, when I tried to run this command I was unfortunately greeted with a nasty error, when getting to update ActiveRecord.
Attempting remote update of activerecord
ERROR: While executing gem ... (Zlib::BufError)
buffer error
According to a Ruby Form post, I found a solution to the problem, updating ruby gems.
While you could run this line to update RubyGems to 0.9.5, I don’t recommend it.
gem update --system
Instead download rubygems-0.9.4, unzip it and then run
ruby setup.rb
This will allow you to continue to use Mongrel, because there are some incompatibilities with Mongrel running on Win32 with RubyGems 0.9.5. See the following:
and then update rails as you would expect.
gem update rails
Voila!
RSS Feed