Skip to content

Instantly share code, notes, and snippets.

@markmarkoh
Created January 11, 2010 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markmarkoh/274742 to your computer and use it in GitHub Desktop.
Save markmarkoh/274742 to your computer and use it in GitHub Desktop.
require 'model'
require 'time'
@s = Chart.count_all_activity
@s.find().to_a.each do |f|
puts "#{f['_id']} (#{Time.at(f['_id'])}) : #{f['value']['count']}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment