I'm trying to download rails onto my computer, and so the general version that it has is the following:
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
However, I keep trying to change it and have downloaded rbenv, and changed the global version to 3.1.2p20. It has downloaded rails successfully with the following output:
Successfully installed rails-7.0.3 Parsing documentation for rails-7.0.3 Done installing documentation for rails after 0 seconds 1 gem installed
However, when I run rails --version it gives me the error: `Rails 7 requires Ruby 2.7.0 or newer.
You're running
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
Please upgrade to Ruby 2.7.0 or newer to continue.`
How do I fix this?