List available rubies
Install a ruby version
You can install a specific ruby version with:
rbenv install 2.1.2
Run rehash after install/uninstall rubies
List your ruby versions
List all ruby versions installed in your machine
Current ruby version
Wondering if/which ruby version is currently used?
Use this ruby in the current directory
Choose a version for your current directory
rbenv local 2.1.2
Apart from ruby versions you have sets of gems called gemsets. Gemsets are organized and managed by bundler. To list all your gemsets run:
rbenv gemset list
When creating a new gemset you need to define the ruby version associated with the gemset and give gemset a name.
Check which gemset is used in your current directory.
rbenv gemset active
Delete gemset for specific ruby version.
rbenv gemset delete