You can tell RVM to temporarily use a particular Ruby using:
rvm use 2.0.0
That selected Ruby won't be remembered between launches of command-line sessions, because that doesn't tell RVM to use that version as a default. Add --default
and it will:
rvm use 2.0.0 --default
From the built-in help:
To set a ruby as the user default, use the --default option.
$ rvm use 1.9.3 --default
Please see documentation for further information:
https://rvm.io/rvm/basics
When I run rvm list
, there's some important information displayed that you seem to have overlooked:
rvm list
rvm rubies
ruby-1.9.3-p547 [ x86_64 ]
=* ruby-2.1.2 [ x86_64 ]
# => - current
# =* - current && default
# * - default
Notice the legend showing which is the current and the default Ruby. Compare that to yours.
Also, notice that you're seeing:
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
That'd be the version of Ruby installed in the system. Either the user you're running your Rails session as does not have RVM installed and initialized, or somehow RVM is being told to switch to the system Ruby.
Also, you might have a RVM directive in that directory, so read "rvmrc files" and "Typical RVM Project Workflow" to see if something there might be affecting you.