Once I also faced the same problem when I tried to create a new rails application. So we followed these steps below and it was fitted,
- Remove the rails
- Remove ruby
rvm latest version of ruby ββusing rvm- how to install rails using the
gem install rails command
After completing this step, I can now create a new application. Perhaps this will also help you resolve this error.
source share