use these commands to install rails
The rvm installation documentation instructs you to put the following line at the very end of your bash profile:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
NOTE: This is for a user install. If you installed as root then you substitute '$HOME/.rvm' with '/usr/local/rvm'.
For those who are not very familiar with bash scripting, I will explain in the next few paragraphs what the line above does.
[[ condition ]] evaluates the condition inside the double brackets and returns true or false. The option -s tells bash to look for the named file, and decide whether it exists and is nonempty. So the line [[ -s "$HOME/.rvm/scripts/rvm" ]] looks inside the default rvm scripts folder '~/.rvm/scripts/' for rvm, and returns true or false based on that criteria.
use these commands to install rails