Reputation: 27852
Just installed via RVM Ruby 2.0.0 and Rails 4.0.0. Started a new project and when tried to add the gem 'factory-girl-rails', and run bundle install, I got this error:
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'factory-girl-rails (~> 4.2.1) ruby' in the gems available on this machine.
Any thoughts why can this be happening?
Upvotes: 2
Views: 4651
Reputation: 167
factory_girl_rails does not seems to be available for rails higher then version 3.2.11 https://github.com/thoughtbot/factory_girl_rails#rails
Upvotes: -2
Reputation: 16793
You need to change those dashes to underscores:
gem 'factory_girl_rails', '4.2.1'
Upvotes: 10