rubygreenblue.com — A little ruby magic in the form of meta-programming allows you to define your models as being able to output data in csv format. The definition is a DSL (domain specific language) style acts_as_convertible_to_csv with :header and :fields as valid specifications.