RVM
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3\curl -sSL https://get.rvm.io | bash -s stable- add
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"to the end of your unix shell source file (ex: .bashrc, .zshrc) - if it says that
.rvm/scripts/rvmnot found runcp /usr/share/rvm/scripts ~/.rvm(optionally)
Ruby
rvm list knownto see all available ruby versionsrvm install {{ version }}ex:rvm install 2.2.4rvm listto check if it was installed
Ruby on Rails
gem install rails -v {{ version }}ex:gem install rails -v 4.2.4