This example was used for a 2 hour Ember.js training. Here are the slides. You'll need the follow installed.
brew install rbenv ruby-build rbenv install 2.0.0-p353 # at least 1.9.3 rbenv rehash gem update --system gem install bundler rails
brew install node npm install -g bower