Other Pages

Expand All

OS X Railsinstaller

If you wrote down Core Duo as your processor type in the previous step, DO NOT continue with these steps. Please flag down a volunteer for additional help.

These instructions should work on Snow Leopard, Lion, Mountain Lion, and Mavericks.

Step 1: Run RailsInstaller

RailsInstaller includes Rails, Ruby, Git, and SQLite.

Go to http://railsinstaller.org/, scroll to the 'Downloads' section, and download the RailsInstaller for your OS.

Alternatively, ask a volunteer for a flash drive with the file on.

Click on the RailsInstaller file to run the install wizard. Click Next at each step to accept the defaults. Enter your full name and email when prompted.

Step 2: Open Terminal

Look for Terminal.app inside Applications -> Utilities.

Alternatively, use Spotlight search (Command + Space Bar.

Add it to your dock; you'll be using it a lot. (To add it to the dock, click and hold the dock icon once Terminal is open. Select options -> keep in dock.)

Arrange your windows so that Terminal and your web browser are next to each other. You will want to read from your browser and type into your terminal at the same time.

Step 3: Install Sublime Text 2

We'll be using the Sublime Text 2 text editor during the workshop, though you are free to use a different editor if you prefer. It must be a plain-text editor, such as vi or TextMate.

Microsoft Word and other word processing programs won't work.

When in doubt, use Sublime Text 2.

Step 4: Update Rails

Currently, RailsInstaller installs Rails 3.2.x, but we want 4.x. Upgrading Rails is pretty easy:

Type this in the terminal:
gem install rails

...and you're done. New Rails! Woo.

Verify successful installation

Type this in the terminal:
which git
Expected result:
/usr/bin/git
Type this in the terminal:
which ruby
Approximate expected result:
/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby
The greyed-out text may differ and is not important.
Type this in the terminal:
which rails
Approximate expected result:
/usr/local/rvm/gems/ruby-1.9.3-p194/bin/rails
The greyed-out text may differ and is not important.
Type this in the terminal:
ruby -v
Approximate expected result:
ruby 1.9.3p194
The greyed-out text may differ and is not important.
Type this in the terminal:
rails -v
Approximate expected result:
Rails 4.0.x
The greyed-out text may differ and is not important.

Next Step: