export_csv
Very simple tool to export all records of an ActiveRecord model.
Examples
The only required parameter is the model name:
export_csv(User)
The name of the generated file can be overriden by passing it as a second option:
export_csv(User, "User Backup")
Find options may also be passed
export_csv(User, "User Backup", { :limit => 20 })
Copyright © 2009 Robby Colvin, released under the MIT license