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

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! 

{ 2 comments to read ... please submit one more! }

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

  2. 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.

{ 0 Pingbacks/Trackbacks }

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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


Real Time Web Analytics