0

I'm trying to install Rails 5 on my Mac (El Capitan).

When I type

gem install rails

I get this error message:

ERROR:  Error installing rails:
    activesupport requires Ruby version >= 2.2.2.

When I check my Ruby version with Rbenv:

rbenv global
2.3.1

however when I check my Ruby version like this:

ruby -v

I get

ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]

how can I fix this, so when I want to install rails 5, it's using Ruby 2.3.1

Thanks for your help,

Anthony

Toontje
  • 1,415
  • 4
  • 25
  • 43

0 Answers0