I wanted to try the new release candidate for Ruby on Rails 4.1.0. I have RVM installed, but didn’t know how to approach installing a different version of Rails. Once I looked online, I was reminded of something I forgot. Gemsets. So I did the following:
rvm gemset create 4.1.0rc1
rvm gemset use 4.1.0rc1
gem install rails -v 4.1.0rc1
I first create a gemset called 4.1.0rc1 so I can install another version of the Rails gem without interfering with the stable version of my already install Rails 4.0.3. Switch over to that gemset using gemset use
, then install the desired version of Rails. A gemset is similar to how git has branches is many ways. You can create a new branch and make changes without messing up your master branch.