Selective Fixture Loading in Rails
Apr 27, 2006 by
Andre
Selective Fixture loading is exactly what it sounds like: load in a subset of your fixtures rather than the whole enchilada. I have found this to be absolutely essential. The syntax is: rake db:fixtures:load FIXTURES=neighborhoods,stores
While I'm on fixtures - dump your existing data to a fixture or a file: http://nubyonrails.com/articles/2005/12/27/dump-or-slurp-yaml-reference-data
While I'm on fixtures - dump your existing data to a fixture or a file: http://nubyonrails.com/articles/2005/12/27/dump-or-slurp-yaml-reference-data
Comments
Matthias on Oct 09
Hey, i have a little problem with this excellent work...
I would like select european address. But it doesn't work
exemple :
{:address=>'4 Rue de la Prairie, Geneve, suisse',:description=>'Church'}
Can you give me some help please...
Does it work only for american address, i don't think...
Thanks