Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

the rails' command exists in these ruby versions 2.1.5

I am using Ruby version 2.2.3 which I've upgraded from 2.1.5. The problem is when I try to execute any Rails command it won't execute and give me this error

the rails' command exists in these ruby versions 2.1.5

So when I switched back to my previous version by rbenv global 2.1.5, it is working again. Can anyone tell me whats going on here? Why I can't do anything with newer version of ruby?

like image 354
rubhan Avatar asked Oct 28 '25 14:10

rubhan


1 Answers

Maybe try to do a gem install rails with your new version.

like image 189
Cremz Avatar answered Oct 31 '25 04:10

Cremz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!