I am following the instructions on GoRails to install Ruby & Rails on my system. After following the instructions for installing Ruby using rbenv, I verified the ruby version is 2.1.3.
However, upon opening a new terminal the ruby version defaults back to 2.0.0 unless I execute rbenv global 2.1.3
.
Could someone please explain how I can have this rectified?
Try doing the following
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
Then open a new shell.
The tutorial you used assumed your shell was bash, but you are using zsh. You need to modify .zshrc instead of .bash_profile.