When I start my Rails server using rails s
, I getting this error:
/usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:296:in `to_specs': Could not find 'railties' (>= 0) among 10 total gem(s) (Gem::LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:307:in `to_spec'
from /usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /usr/bin/rails:22
How do I fix it?
Try:
bundle install
Then start your server with this command:
bundle exec rails s
There might be something wrong with your rails install. Try gem list
, if you don't see railties
then re-install rails: gem install rails
If you install a new gem don't forget to bundle install
and start your server again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With