Reputation: 13
I need help to fix my ruby. It was working perfectly fine until this morning when I tried to start up my rails server and I've received this error msg:
Daniels-MacBook-Pro:myrubyblog daniellim$ rails s -p 5040 /Users/daniellim/.rbenv/versions/2.3.0/bin/rails:23:in load': cannot load such file -- /Users/daniellim/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rails-4.2.6/bin/rails (LoadError) from /Users/daniellim/.rbenv/versions/2.3.0/bin/rails:23:in main>'
I have tried bundle install and update but it doesn't seem to be working.
Upvotes: 1
Views: 214
Reputation: 787
According to the error you are getting which is you don't have the rails (or right version of rails) installed.
Therefore, first install rails on your system
gem install rails -v 4.2.6
Or if you already have it installed, update it
gem update rails
Tell me if I am missing on something?
Upvotes: 0