Installing ruby
$ rvm install 1.9.2
$ rvm use 1.9.2
$ ruby -v
To list all installed versions of ruby
$ rvm list rubies
To list all know ruby versions
$ rvm list known
To switch versions
$ rvm use 1.9.2
Creating a named gemset to test a different version of rails
$ rvm gemset create rails222
$ rvm 1.9.2-head@rails222
$ gem install rails -v 2.2.2
$ rvm 1.9.2-head@rails222 ; rails --version
Rails 2.2.2
To list all interpreters gemsets
$ rvm gemset list