json.hacks_count @hacks_count json.hacks @hacks do |hack| json.(hack, :name, :difficult, :updated_at) json.sets_count hack.hack_sets.count end