Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

Commit

Permalink
Updated the readme to fix parameter error
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monagle committed Mar 1, 2012
1 parent 7c72b79 commit 0259b0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.rdoc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ There are three Rake tasks that allow you to use a converter on a file:


=== Examples === Examples


rake active_import:csv user.csv CONVERTER=User CONVERTER_OPTIONS="give_admin_access=true" rake active_import:csv FILE=user.csv CONVERTER=User CONVERTER_OPTIONS="give_admin_access=true"


In this case the file in db/active_import/user.csv would be run through the converter UserConverter. The options specified are available within the converter. In this case @options["give_admin_access"] will evaluate to true. In this case the file in db/active_import/user.csv would be run through the converter UserConverter. The options specified are available within the converter. In this case @options["give_admin_access"] will evaluate to true.


The FILE parameter is not strictly necessary in this case either as the default file name will be an underscored value of the name of the converter.

== Seeding == Seeding


Seeding allows you to import several files through different model converters in a single command. It involves the creation of a .seed file. Each file goes on a single line and the options are separated by pipe symbols. Seeding allows you to import several files through different model converters in a single command. It involves the creation of a .seed file. Each file goes on a single line and the options are separated by pipe symbols.
Expand Down

0 comments on commit 0259b0a

Please sign in to comment.