HRIZI HRIZI - 6 months ago 328
Ruby Question

Comand Rails server

I tried this command

rails server
, then I get this error

/usr/local/bin/rails:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/railties-4.2.6/bin/rails (LoadError)
from /usr/local/bin/rails:23:in `<main>'

Answer

Try these commands:

  1. gem update --system
  2. bundle install
  3. rails server

Or as a one-liner:

gem update --system; bundle install; rails server