Last Updated: February 25, 2016
· dscotts3

Create .ruby-version and .ruby-gemset files using RVM

As of ruby 2.0 .rvmrc has been deemed deprecated. To circumvent hassle moving forward you can generate two new files that will tell the project which ruby version to use along with which gemset to use. To accomplish this, use the command below.

rvm --create --ruby-version use ruby-version-number@gemsetname


rvm --create --ruby-version use ruby-2.0.0-p247@mycoolapp

This will create a .ruby-version file that contains "ruby-2.0.0-p247" and a .ruby-gemset file that contains "mycoolapp".