Skip to content

Instantly share code, notes, and snippets.

@Vic-L Vic-L/output_to_file
Last active Aug 29, 2015

Embed
What would you like to do?
CSV
CSV.open("myfile.csv", "w") do |csv|
csv << BusinessService.column_names
BusinessService.all.each do |m|
csv << m.attributes.values
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.