#4 - added instructions for using the Github gem in a Rails 2.1 project

This commit is contained in:
Joe Ferris 2008-07-30 09:48:11 -04:00
parent 85b6c9ce7f
commit 37328b33ed
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ Github: "Page":http://github.com/thoughtbot/factory_girl/tree/master "Clone":git
Gem: <pre>gem install thoughtbot-factory_girl --source http://gems.github.com</pre>
Note: if you install factory_girl using the gem from Github, you'll need this
in your environment.rb if you want to use Rails 2.1's dependency manager:
config.gem "thoughtbot-factory_girl",
:lib => "factory_girl",
:source => "http://gems.github.com"
h2. Defining factories
<pre><code># This will guess the User class