title: How to fix "Bundler 2 requires RubyGems 2.5 or later"
body: <p>I am a newbie and using Ruby on Rails, I am stuck with this problem.
  I am trying to install Ruby on Rails, and when I am trying to check rails's version with "rails -v", it gave me this message:</p>
  
  <pre><code>Bundler 2 requires RubyGems 2.5 or later. Either install bundler 1 or update to a support RubyGems version 
  </code></pre>
  
  <p>I tried to update the gem with <code>gem update --system</code> but it gave me this message:</p>
  
  <pre><code>ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SSL_connect returned=1 errno=0 state=error: certificate verify failed.
  </code></pre>
  
  <p>(<a href="https://api.rubygemsorg/specs.4.8.gz" rel="nofollow noreferrer">https://api.rubygemsorg/specs.4.8.gz</a>)</p>
  
  <p>When I check my gem version with <code>gem --version</code>, it gives me <code>2.3.0</code>. </p>
  
  <p>How can I solve this problem?</p>