1

I installed Ruby 2.3.1, then I installed Ruby on Rails.

The Rails install gives me an older version ruby.exe (2.2.4).

The Rails installer also added the older version of Ruby to the head of my PATH:

C:\RailsInstaller\Ruby2.2.0\bin;C:\Ruby23-x64\bin;...

so checking ruby -v I get 2.2.4.

I modified the PATH precedence:

C:\Ruby23-x64\bin;C:\RailsInstaller\Ruby2.2.0\bin;...

..and ruby -v does indeed report 2.3.1)

When I cd into a Rails project and rails s the message tells me I am using 2.2.4 (and as well that I should be using 2.2.5 or 2.3.1. This whether I modify PATH to give 2.2.4 or 2.3.1 precedence...)

I understand rvm and rbenv don't work on windows and pik is no longer supported... C:\RailsInstaller\Ruby2.2.0\bin\ruby.exe
C:\Ruby23-x64\bin\ruby.exe

How do I get Rails to work with the newer version of Ruby?

1
  • Next up, "chocolatey"... Commented Dec 26, 2016 at 20:38

1 Answer 1

0

https://chocolatey.org works. There's some buggery involved with compiling nokogiri to work, but otherwise chocolatey addresses my question adequately. See Richard Pecks excellent answer for information on how to successfully compile nokogiri.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.