Skip to content

Instantly share code, notes, and snippets.

@rclements
Created May 9, 2011 14:24
Show Gist options
  • Select an option

  • Save rclements/962597 to your computer and use it in GitHub Desktop.

Select an option

Save rclements/962597 to your computer and use it in GitHub Desktop.
FasterCSV.open("tmp/vehicles.csv", "w") do |csv|
@vehicles = Vehicle.all
@vehicles.each do |object|
csv << object
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment