Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Admin::ReportsController < AdminController
respond_to :csv
def trips
respond_with TripReport.new
end
end
class TripReport
# ...
def to_csv
# returns a csv string
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment