hjyobw
Last Updated: February 25, 2016
·
8.173K
· dscotts3
F9ec8f02 86de 46a3 83a7 43a0e94d3523

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

Example:

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".

Say Thanks
Respond