I was trying to create a new project today and was unable to use the rails server. Here’s what happened
MacBook-Air:~ fy$ rails server
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs’: Could not find rails (>= 0) amongst [bundler-1.1.1, bundler-1.1.1, rake-0.9.2] (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1208:in `gem'
from /usr/bin/rails:18
When I tried to create a new directory and resources I got the same answer:
MacBook-Air:~ fly$ rails new generalproj
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs’: Could not find rails (>= 0) amongst [bundler-1.1.1, bundler-1.1.1, rake-0.9.2] (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1208:in `gem'
from /usr/bin/rails:18
I’ve re-installed RVM, and Rails 1.9.3. Any ideas of what could be happening? Thanks!