From 2e69cddaa671da870d55d6edf440498b4b7c6562 Mon Sep 17 00:00:00 2001 From: Joshua Pinter Date: Tue, 11 Nov 2014 10:16:22 -0700 Subject: [PATCH] Indicate filter has to be a regex expression. And provide example. I was trying to pass in a string or a symbol and the resulting error was: *** TypeError Exception: type mismatch: String given This should help limit that confusion. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b2a9dc..e3b1b0d 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,10 @@ Seed files can be run automatically using `rake db:seed_fu`. There are two optio * `rake db:seed_fu FIXTURE_PATH=path/to/fixtures` -- Where to find the fixtures * `rake db:seed_fu FILTER=users,articles` -- Only run seed files with a filename matching the `FILTER` -You can also do a similar thing in your code by calling `SeedFu.seed(fixture_paths, filter)`. +You can also do a similar thing in your code by calling `SeedFu.seed(fixture_paths, filter)`, where`filter` is a regex expression, like the following: + + SeedFu.seed( 'path/to/fixtures', /users/ ) + Disable output --------------