How to Setup Rails Environment on Mac OS X

All of these steps need to be performed from the Mac terminal.

Install Homebrew

Paste these on the mac terminal and follow further instructions

ruby -e "$(curl -fsSL"  

Install git

brew install git  

Install RVM

\curl -sSL | bash -s stable

Install Ruby

rvm install 2.1.0  

Install MySQL

brew install mysql