How to install Ruby on Rails and Skid on mac


In Leopard and Leopard Server, Ruby and Rails are pre-installed along with a bounty of other useful RubyGems

Use the following commands to upgrade Rails and RubyGems

sudo gem update --system

sudo gem install rails

sudo gem update rake

sudo gem update sqlite3-ruby

The first commands updates the RubyGems itself, which is required by the latest version of Rails. The second command updates Rails-specific gems and installs any new components(specifically Active Resource). The third command updates Rake, the make-like build tool built by Rails. Finally, the last command updates the Ruby bindings for the SQLite3 database. Running all these commands may take a while. When it's finished, you can list all the installed gems by typing

gem list

You can view the documentation for all the installed gems by running

gem server

This command starts a web server on port 8808 by default. To access the documentation, point Safari to http://localhost:8808. You'll see a list of the gems you have installed with a link to their RDoc documentation.

Open a terminal window and type

svn co http://rubypython.svnrepository.com/svn/skid

This will download the software into a directory called skid.\ After that, enter into the terminal.

Install the hpricot gem by using the command:

sudo gem install hpricot

The installed version of rails must be 2.1.0. For this enter

sudo gem install -v=2.1.0 rails

After that, enter into the terminal the following commands:

cd skid

ruby script/server

Now fire up your browser, and point it to http://localhost:3000/modules/select/fun



This page is maintained by Pragya Goel