Skip to content

Instantly share code, notes, and snippets.

@carlwoodward
Created May 6, 2009 06:54
Show Gist options
  • Save carlwoodward/107406 to your computer and use it in GitHub Desktop.
Save carlwoodward/107406 to your computer and use it in GitHub Desktop.
registration_count = {}
Registration.find_all_by_complete(true).each do |reg|
date = reg.sydney_updated_at.to_date
if registration_count.key? date
registration_count[date] += 1
else
registration_count[date] = 1
end
end
registration_count.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment