Updated: July 12, 2013
The instructions below are just quick references if you know what you're doing.
If you are installing RVM, Ruby, and Rails for the first time, I'd recommend following Daniel Kehoe's instructions:
http://railsapps.github.io/installing-rails.html