making the world a stranger place

Site menu:

Archives

Twitter

Twitter Updates

    follow me on Twitter

    Links:

    Github

    Tags

    Meta

    Rails 2.2 and RubyGems

    Rails 2.2 was released earlier today, so you may be tempted (as indeed I was) to install it right away and play with the new features (such as Array#forty_two ) Well, there are a few things you need to be aware of before you start the update process. One is you must have rubygems 1.3.1 installed to use rails. The default way to do this is with

    sudo gem update --system

    However, there is a problem with updating rubygems this way when you don’t have rubygems-update installed. You can get around this by using

    sudo gem install rubygems-update
    sudo update_rubygems

    After updating rubygems, install rails 2.2 with

    sudo gem install rails

    and you should have the new version of rails.

    If you have an existing project, cd to that project directory and

    rake rails:update 

    to update your javascript, scripts, and configs. This should get you running on the new version of Ruby on Rails.

    Tags:

    Write a comment