Update the Server:
# apt-get update
Install Curl:
# apt-get install curl
Install RVM:
# \curl -L https://get.rvm.io | bash -s stable
Load RVM:
# source /usr/local/rvm/scripts/rvm
Install RVM Requirements:
# rvm requirements
Install Ruby:
# rvm install 2.0.0
Set the Installed Version of Ruby as the Default:
# rvm use 2.0.0 --default
Install Ruby Gems:
# rvm rubygems current
Install Rails:
# gem install rails