[RVM] How to Manage Ruby on Rails Versions

Tadashi Shigeoka ·  Mon, May 28, 2012

Here’s how to manage Ruby on Rails versions with RVM, the Ruby version management system.

RVM

First, switch to the Ruby validation that will use Rails.

$ rvm use 1.9.3
Using /Users/your_user/.rvm/gems/ruby-1.9.3-p194

Display the list of gemsets.

$ rvm gemset list

gemsets for ruby-1.9.3-p194 (found in /Users/your_user/.rvm/gems/ruby-1.9.3-p194)
   global

Create a gemset so that gemset names don’t conflict.

By the way, I create a gemset for each Rails application.

$ rvm gemset create myapp

Switch to the created gemset.

$ rvm gemset use myapp

Finally, install Rails and you’re done.

$ gem install rails

That’s all from the Gemba.