I'm using rbenv
and I have the follow error when I execute rails s
Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2
I was reading this thread: Mavericks, RBENV, Your Ruby version is 2.0.0, but your Gemfile specified 2.1.1
But the error persist.
rails -v
Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2
and the commands
sudo gem install bundler
rbenv rehash
$ which ruby
/usr/bin/ruby
$ bundle exec which ruby
Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2
doenst solve the problem. I'm doing something wrong?
What version of ruby are you using?
ruby -v
It sounds like the Gemfile has a ruby requirement listed for 2.1.2. You may need to install that version:
rbenv install 2.1.2
Then you may need to tell rbenv to use that version for that project:
rbenv local 2.1.2
It looks like the rbenv team/community decided against adding support for ruby versions specified in the Gemfile. Reference: https://github.com/sstephenson/rbenv/issues/223