From 20319bc47738d26898ca31c953ba759ee9591ddd Mon Sep 17 00:00:00 2001 From: Chad Pytel Date: Fri, 11 Jun 2010 11:06:17 -0400 Subject: [PATCH] update README for rails 3 --- README.rdoc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.rdoc b/README.rdoc index c764abbd9..420e4fa85 100644 --- a/README.rdoc +++ b/README.rdoc @@ -2,6 +2,10 @@ factory_girl is a fixtures replacement with a straightforward definition syntax, support for multiple build strategies (saved instances, unsaved instances, attribute hashes, and stubbed objects), and support for multiple factories for the same class (user, admin_user, and so on), including factory inheritance. +If you want to use factory_girl with Rails 3, use the factory_girl_rails gem, not this one. + +If you want to use factory_girl with Rails versions prior to Rails 3, use version 1.2.4. + == Download Github: http://github.com/thoughtbot/factory_girl/tree/master @@ -9,11 +13,6 @@ Github: http://github.com/thoughtbot/factory_girl/tree/master Gem: gem install factory_girl -If you want to use Rails 2.1+'s dependency manager you'll need this in your -environment.rb file: - - config.gem "factory_girl" - == Defining factories Each factory has a name and a set of attributes. The name is used to guess the class of the object by default, but it's possible to explicitly specify it: