Categorizing by created_at

Use group_by: http://api.rubyonrails.org/classes/Enumerable.html#M001645