xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install rbenv
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
rbenv install -l
rbenv install 2.4.2
rbenv global 2.4.2
gem install rails --no-document
rails new myapp
cd myapp
rails server