4

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?

rubhan
  • 77
  • 1
  • 7
  • Possible duplicate of [rbenv: ruby: command not found](http://stackoverflow.com/questions/21275951/rbenv-ruby-command-not-found) – Anthony Oct 27 '15 at 13:20

1 Answers1

9

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

Cremz
  • 838
  • 7
  • 15