Home » Programming

Troubleshooting Tips for Ruby on Rails

12 February 2011 No Comment

Troubleshooting Tips for Ruby on RailsAlthough Ruby on Rails makes web development much easier, getting it set up is not so easy. There are certain quirks that may cause you grief. I’ve put together some questions and solutions I have come across when setting up my web projects.

Question. Whenever I run the rake command or start up Webrick or Mongrel, I get the following error message:

Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update –system` and try again.

Solution. If you are using Rails 2.0, you need to upgrade RubyGems to version 1.3.1. If you use Ubuntu, you can just run the following commands:

sudo gem install rubygems-update
sudo update_rubygems

For other flavors of Linux, download and install RubyGems by doing the following:

wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
tar xzf rubygems-1.3.1.tgz
cd rubygems-1.3.1
sudo ruby setup.rb

If you have any other questions about Ruby on Rails, let me know and I can answer them for you.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.