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
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