rbenv lets us change ruby verions on the fly, useful for working with diffrent versions.
brew update
brew install rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source ~/.profile
sudo chown -R $USER ~/.rbenv
brew update
brew install ruby-build
rbenv install 2.5.1
rbenv global 2.5.1
gem update
gem update --system
gem install rails
You may need to press "yes" for various entries
Make sure to restart your terminal and then run each of these commands. Finally call someone over to validate your installation is correct.
rails -v
ruby -v
which ruby
which rails
which bundle
which gem
node -v
npm -v
git --version
psql --version
- Sass (syntax definition, we'll use this when working with Rails)