Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Setup Ruby (OS X and Windows)

Georgia A edited this page · 7 revisions

TODO: Linux instructions

Base Install - OS X

Install by hand

Follow these instructions for minimal cruft and if you're a little familiar with the command line already.

  1. Install Brew
    • ruby -e "$(curl -fsSkL"
  2. On a mac (Lion+ ?), you must have the Xcode Command Line Tools installed. Install this if you haven't already. You can find them on Apple's developer tools, and you have to sign up as an Apple developer. Look for the most recent version of Command Line Tools for your OS version.
  3. Start by installing git, and creating a github account if you don't have one already
    • brew install git
    • Follow the instructions to setup your github account with an ssh key
  4. We will be using RVM (Ruby Version Manager) to manage our ruby versions and gemsets.
    • Install RVM using curl -L | bash -s stable
    • After installation, open your .bashrc and add this line to it.
      • open ~/.bashrc
      • add => source ~/.rvm/scripts/rvm to the bottom of the file
      • save and close
    • Install Ruby 1.9.3 with rvm install 1.9.3
    • And set this version as the default rvm 1.9.3 --default

Install with RailsInstaller

Follow the instructions on Railsbridge's Installfest page, UNTIL the heroku instructions. Those are optional for the connect four project.

Sanity Check

Type the following lines into the command line and check for the expected responses. Version numbers don't have to be exactly the same.

  • which git -> /usr/bin/git
  • which ruby -> /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby
  • which rails -> /usr/local/rvm/gems/ruby-1.9.3-p194/bin/rails
  • ruby -v -> ruby 1.9.3p194
  • rails -v -> Rails 3.2.x

Base Install - Windows

  1. We recommend using the Railsbridge instructions for windows. They use the RailsInstaller for windows, which is the most recommended windows rails install. Go to the installfest page and follow the instructions UNTIL the heroku instructions. Those are optional for the connect four project.
  2. After forking & cloning this project, see if you can cd into the project directory & successfully run bundle install
  3. If it doesn't run successfully, try commenting out (# at the beginning of the line) the line in the Gemfile about twitter bootstrap and trying again.

Working with this project

Start by forking this repo and cloning it to your computer.

To edit code, you'll need a text editor. Komodo Edit, and Sublime are two popular choices.

Then, head over to the project starter page!

Something went wrong with that request. Please try again.