I want to use Rails with Ruby 2.1.0, but it\'s using Ruby 1.9.3 (the system\'s version).
I\'m using rbenv to manage my Ruby versions. My steps were something along t
Try creating a .ruby-version
file in the root of your project with the following contents:
2.1.0
Sounds silly, but did you restart terminal session?
Otherwise try and type
/bin/bash --login
You didn't tell how you installed rbenv
, but I think it is per-user installation (which is default). In this case you should install gems without using sudo
. When you did sudo gem install rails
, it was installed in system ruby, not rbenv's selected one.
Solution - install rails without sudo:
rbenv global 2.1.0
gem install rails
rbenv rehash