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".
Written by Dwight Scott
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#