6 steps to set up a rails development environment on OS X:
- install Apple Command Line Tools
- install homebrew[1]:
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
- install rvm:
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
- install ruby
rvm install 1.9.3
- install rails
gem i rails
- start a project
rails new myproject
[1] Use brew
command to install whatever database engine you need, ie brew install sqlite
Please note that we are talking about getting up and running rather than discussing if using xcode vs gcc-installer vs command line tools is good or not in the long term. When you start you just want to install the latest version of ruby and rails and you're done.