You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/hacks/unpulished_list.json.jbuilder

5 lines
146 B

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