Browse files

Updated the readme to fix parameter error

  • Loading branch information...
1 parent 7c72b79 commit 0259b0af8593e764a0d58e7387e6a0f1030bf40f @dmonagle committed Mar 1, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.rdoc
@@ -30,10 +30,12 @@ There are three Rake tasks that allow you to use a converter on a file:
=== 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.
+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 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.

0 comments on commit 0259b0a

Please sign in to comment.