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/index.json.jbuilder

13 lines
369 B

json.top_data do
json.passed_count @pass_count
json.simple_count @simple_count
json.medium_count @medium_count
json.diff_count @diff_count
end
json.hacks_count @hacks_count
json.hacks_list do
json.array! @hacks do |hack|
json.(hack,:identifier, :name , :hack_user_lastest_codes_count, :difficult, :passed_rate, :category, :open_or_not, :status)
end
end