How can I fix this error please. Your Ruby version is 3.0.0 but your Gemfile specified 2.4.1. I need to work on Ruby 3.0.0 so i need to upgrade gemfiles

How can I fix this error please. Your Ruby version is 3.0.0 but your Gemfile specified 2.4.1. I need to work on Ruby 3.0.0 so i need to upgrade gemfiles.

Well, that’s because your Gemfile specifies Ruby version 2.4.1. To fix this issue, you need to edit the Gemfile, and then in the ruby '>= 2.4.1', notice the >=.

This should fix the issue.