Last Updated: February 25, 2016
·
1.436K
· rshetty

Set Default Ruby Version Per Project

You can set the default ruby version you want to work on per project basis using rvm.

All you have do is to add .rvmrc file inside your project directory and add these lines to your file

rvm ruby-1.9.3

Save the file and quit.
Now get out of the project directory and then cd into it.
This time it asks for permission to use the newly created rvmrc file.
Accept it.

That's it.
Now your whole project will default to ruby version 1.9.3

Happy Hacking!!