title: Error Installing rails: nokogiri requires Ruby version < 2.4, >= 2.1.0
body: <p>I am trying to install rails after having installed ruby 2.4.1p111 on windows 8.1 from 'Start Command Prompt with Ruby(this is just like command prompt that got installed with ruby)'.</p>
  
  <p>I use the command <code>gem install rails</code> and after a few seconds of pause the Title of the question is thrown as error.</p>
  
  <p>I tried the command <code>gem install nokogiri -v 1.7.1</code> and it throws the same error.</p>
  
  <p>If I run <code>gem list</code>, it does not list nokogiri at all. </p>
  
  <p>A possible solution I came across read. <em>Change nokogiri version in gem <code>Gemfile</code> with some command <code>gem 'nokogiri', '~&gt; 1.6.8'</code></em>. I don't know if that even applies to the version of rails I have installed. If this is the solution, how do I implement it?</p>
  
  <p>How do I rectify this error and install rails? </p>