ok:~ maryh$ rvm update
ok:~ maryh$ rvm reload
RVM reloaded!
ok:~ maryh$ rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-p358]
[ruby-]1.8.7-head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2-p180
[ruby-]1.9.2-p290
[ruby-]1.9.2-p318
[ruby-]1.9.2[-p320]
[ruby-]1.9.2-head
[ruby-]1.9.3-preview1
[ruby-]1.9.3-rc1
[ruby-]1.9.3-p0
[ruby-]1.9.3-p125
[ruby-]1.9.3[-p194]
[ruby-]1.9.3-head
ruby-head

The square brackets mark the default patch level for that version. Since I want to install 1.9.3 and I already have 1.9.3-p0 installed, I can run this.

ok:~ maryh$ rvm install 1.9.3-p194 --with-opt-dir=/opt/local

Need the –with-opt-dir because when I tried to do a bundle install on my first rails app using the new versions of things, the command kept crashing. I found this post that explains the issue.

Working with rvm

To see and use the current versions installed:

ok:~ maryh$ rvm list
ok:~ maryh$ rvm use 1.9.3-p194
Using /Users/maryh/.rvm/gems/ruby-1.9.3-p194
ok:~ maryh$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]
ok:~ maryh$ gem list

*** LOCAL GEMS ***

bundler (1.1.4)
rake (0.9.2.2)
rubygems-bundler (1.0.2)
rvm (1.11.3.3)
ok:~ maryh$ gem install rails