I am trying to start a new Rails project but I am getting a really strange error. When I do:
rails new my_project
I get a error:
/usr/local/Cellar/ruby/1.9.3-p125/lib/ruby/1.9.1/rubygems.rb:314:in `bin_path': can't find gem rails ([">= 0"]) with executable rails (Gem::GemNotFoundException)
from /usr/bin/rails:19:in `<main>'
What should I do to start a new project ?
It seems like rails isn’t actually installed.
You can install it with
gem install rails.If it seems unlikely that it isn’t installed, try running
gem list --local | grep "rails".If it returns something, then make sure your rubygems aren’t configured for a different ruby install by running
gem environment.