2
votes

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?

2

2 Answers

10
votes

You need to change those dashes to underscores:

gem 'factory_girl_rails', '4.2.1'
-2
votes

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