1

I want to use version 2.2.2 of Ruby, then

r2d2@r2d2-acer ~/ApenasMeu/myapp $ rbenv global
system
r2d2@r2d2-acer ~/ApenasMeu/myapp $ rbenv versions
  system
* 2.2.2 (set by RBENV_VERSION environment variable)

However, the default home page of RoR, it appears that use this version:

Ruby version 1.9.3-p484 (x86_64-linux)

How to solve it?

potashin
  • 44,205
  • 11
  • 83
  • 107
macabeus
  • 4,156
  • 5
  • 37
  • 66

1 Answers1

0

If you're using bundler you can specify the ruby version in your Gemfile - just add a line like ruby "2.2.2" to your Gemfile (I've always seen it at/near the top - not sure if this is required or just convention) and run bundle install.

frostmatthew
  • 3,260
  • 4
  • 40
  • 50
  • In doing so, I get the message `Your Ruby version is 1.9.3, but your Gemfile specified 2.2.2` – macabeus May 31 '15 at 15:30
  • You might want to take a look at this [answer](http://stackoverflow.com/a/20936316/903163), including the comments - which suggest running `rbenv rehash` after `gem install bundler` – frostmatthew May 31 '15 at 15:40