For my different Rails folders, I would like to have rvm automatically load the correct gemset when running anything from ‘bundle install’ to doing my ‘autotest’ or rails console or server. Is this possible? Currently I have to manually do ‘rvm use’ which is getting a bit tedious as I am working on multiple Rails projects at the same time.
Share
Create a
.rvmrcfile in your rails directory, and rvm will automatically load it. An example.rvmrcthat loads Ruby 1.9.2 and a gemset named “rails3”:.rvmrc
You can do a lot more too, described in detail here: https://rvm.io/workflow/rvmrc/