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/courses/all_course_groups.json.jbui...

7 lines
201 B

6 years ago
json.course_groups do
json.array! @course_groups_array do |course_group|
json.id course_group.id
json.name course_group.name
end
end
json.course_groups_count @course_groups_array.size