Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 1.1 KB

Rails.md

File metadata and controls

69 lines (44 loc) · 1.1 KB

😄 Ruby On Rails Setup

Installing HomeBrew -

  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Installing Ruby -

  brew install rbenv ruby-build
  • Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile

🍺 Configure Git

  • git config --global color.ui true
  • git config --global user.name "name"
  • git config --global user.email "[email protected]"

🍕 Generate SSH KEYS

ssh-keygen -t rsa -b 4096 -C "[email protected]"
cat ~/.ssh/id_rsa.pub
  • Check your github connection

🍷 Install RAILS -

  • Install rails
gem install rails -v 5.2.3
  • Rails is now installed, but in order for us to use the rails executable, we need to tell rbenv to see it:
rbenv rehash
  • Verify Rails is installed
rails -v
# Rails 5.2.3