Skip to content

Instantly share code, notes, and snippets.

@mtrpcic
Created November 6, 2012 21:12
Show Gist options
  • Save mtrpcic/4027585 to your computer and use it in GitHub Desktop.
Save mtrpcic/4027585 to your computer and use it in GitHub Desktop.
1. Use a ruby version
rvm use 1.9.2-p248
2. Create a gemset
rvm gemset create myapp
3. In the root of your app, add a file named ".rvmrc" with the following contents:
rvm use 1.9.2-p248@myapp
Now, whenever you `ls` into that directory, it will automatically use your preferred
version of Ruby, with the proper Gemset. Tada!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment