I am trying to create a new Rails project,
Jakes-Air:code JakeWengroff$ rails new MyNewProject -T
but I keep getting this error:
script/rails:5:in `require': cannot load such file
Checking Ruby version, ruby -v , I get
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]
When I want to check the version of Rails, rails -v , I get the same error as when initializing a new Rails project:
script/rails:5:in `require': cannot load such file
So, I reinstalled Rails, gem install rails -v 4.2.0 :
Successfully installed rails-4.2.0 Parsing documentation for rails-4.2.0 Done installing documentation for rails after 1 seconds 1 gem installed
I also did bundle install and bundle check , and everything was fine. But the error persisted.
Having looked at some other, similar issues, I thought it was related to gemset. On the RVM website, I decided to try the rvm gemset create rails420 , which gave me
ruby-2.1.2 -
But then trying rails -v and rails new MyNewProject -T still rails new MyNewProject -T original error.
Any help is greatly appreciated.
Thank you in advance.