title: Rails and Ruby versions always conflict, and will never be able to bundle install
body: <p>I git cloned my own repo, when I want to start (rails s), there will be a request to install Rails (sudo apt install ruby-railties), even though I installed it. If I start the installation (gem install rails), there will be a message that the Ruby version is too old:</p>
  <pre><code>ERROR: Error installing rails:
          There are no versions of activesupport (= 7.0.0) compatible with your Ruby &amp; RubyGems. Maybe try installing an older version of the gem you're looking for?
          activesupport requires Ruby version &gt;= 2.7.0. The current ruby ​​version is 2.6.6.146.
  
  </code></pre>
  <p>If I switch to the requested version (rvm use 2.7), the following message will appear when I run rails s:</p>
  <pre><code>Could not find proper version of railties (6.1.4.1) in any of the sources
  Run `bundle install` to install missing gems.
  </code></pre>
  <p>When I proceed to bundle install, there will be a need to switch the Ruby version:</p>
  <pre><code>Your Ruby version is 2.7.2, but your Gemfile specified 2.6.6
  </code></pre>
  <p>This is equivalent to going back to the beginning. This stupid loop prevented me from completing the bundle install and thus rails s.</p>