Skip to content

Instantly share code, notes, and snippets.

@agoodman
Created June 2, 2011 13:57
Show Gist options
  • Save agoodman/1004484 to your computer and use it in GitHub Desktop.
Save agoodman/1004484 to your computer and use it in GitHub Desktop.
User export to CampaignMonitor example
CSV.open("users.csv","wb") {|csv| User.all.each {|user| csv << [user.email, "#{user.first_name} #{user.last_name}"]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment