json.hackathon do json.(@hackathon, :id, :name, :description) json.hackathon_users_count @hackathon_users_count end json.hacks_count @hacks_count json.hacks @hacks do |hack| json.(hack, :id, :name, :description, :hack_users_count) json.entry_info hack.entry_info(current_user.id) end