forgeplus/app/views/admins/schools/index.json.jbuilder

6 lines
126 B
Ruby

json.count @total_count
json.schools do
json.array! @schools.each do |school|
json.extract! school, :id, :name
end
end