Here are some notes to remind me how to setup and flip between various ruby configurations.
rvm list (current versions of ruby installed locally) rvm list known (all known versions) rvm 2.1.1 (to switch to this version of ruby) rvm install 2.1.1 rvm --default use 2.1.1
Rails is setup on a per ruby install basis. So just because you install rails once, doesn’t mean it is available for all rubies.
To see what gems you currently have installed type
To create a named gemset for this combination of ruby & rails go:
rvm gemset create rails416 rvm gemset list
Now link this version of ruby new version of rails:
gemsets for ruby-2.1.1 (found in /Users/jrasmusson/.rvm/gems/ruby-2.1.1)
Now install Rails.
&amp;gt; gem install rails -v 4.1.0
Now to flip between environments we go:
$ rvm 2.1.1@rails410 ; rails --version Rails 4.1.0
$ rvm 2.1.1@rails320 ; rails --version Rails 3.2.0
If libxml2 is missing nokogiri
&gt; gem install nokogiri -- --use-system-libraries &gt; bundle config build.nokogiri --use-system-libraries &gt; bundle install