I'm setting up a development Rails box in Vagrant using Ansible. It's all set up and i've used Rbenv to facilitate installation of Ruby. I installed Ruby 2.1.2
When I run rbenv global I get 2.1.2. When I navigate to my app directory and run rbenv local I get 2.1.2 and when I run ruby -v I get 2.1.2. My gemfile also states 2.1.2
However, when I run bundle install, I get:
Your Ruby version is 1.8.7, but your Gemfile specified 2.1.2
Any ideas how to solve this?
you need to install the bundle gem using the
rbenvgemcommand:Hope this helps