apt-get update
apt-get install curl
curl -L https://get.rvm.io | bash -s stable
# source ~/.rvm/scripts/rvm
rvm requirements
rvm install ruby
rvm use ruby --default
rvm rubygems current
gem install rails
# Links
http://wiki.ubuntuusers.de/Ruby
https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm