I Got A Blog!!!

rofl.

I Got A Blog!!! header image 2

Updating Ruby on Rails in OS X (10.5 aka Leopard)

January 25th, 2008 · 2 Comments · Ruby on Rails

I thought it would be helpful to start posting information related to what I do. This tid-bit — oh the redundancy — will explain how to update Ruby on Rails from version 1.2.6 (the latest version according to Software Update) to 2.0.2 on a Mac.   I want to make sure that everyone using this tutorial is running the latest version of Leopard (10.5.1). To check click the apple logo in the upper left hand corner of the screen and click “About this Mac.” You should see something that looks similar to this image (opposite):About my MacIf you are not running 10.5.1 then I suggest you update your Mac.

To update your Mac click the Apple lgo in the upper left then click Software Update. This will require a restart.  

If you’re running 10.5.1 then lets keep rolling.    

Open up a Terminal window. Terminal can be found in Applications/Utilities. Make sure you have the ability to run commands as root using ’sudo’ and type:  

sudo gem update rails –include-dependencies    

 

 

 

If the update went well it will return:

Gems: [rails] updated   

 

Viola!  Let your machine download the updates and to double check that you are running the latest version type (with two dashes): 

rails –version   

 

This will return:

 Rails 2.0.2 

 Hope you enjoyed this short and simple tutorial. Stay tuned for more! 

Tags:

2 responses so far ↓

  • 1 Hobbit // Feb 28, 2008 at 8:32 am

    Did all that, tells me rails 2.0.2 installed but when I do rails version still says 1.8.6 - any thoughts?

  • 2 admin // Mar 1, 2008 at 1:57 am

    Hobbit- It’s possible that you’re confusing the version of ruby (ruby -v) with the rails version (rails -v). If this is proven true, then you’ve got the latest version as of now.

Leave a Comment