I use RVM, the Ruby Version Manager to specify a Ruby version and a set of gems for each of my Rails projects.
I have a .rvmrc file to automatically sel
.rvmrc
If you want create the .ruby-version and .ruby-gemset file in a short way you can use the commands like this:
.ruby-version
.ruby-gemset
rvm use 2.1.1@nancy --create rvm --create --ruby-version 2.1.1@nancy