I installed rails with "gem install rails" and it is installed properly.
But when I check rails version "rails -v". It keeps saying
/usr/bin/env: ‘ruby2.7’: No such file or directory
I've installed rails before. Maybe that's the reason? If so, how can I solve this issue? I've search other similar issues and solutions but noting solved my problem.
I'm currently using Ubuntu 20.04.2 LTS.