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.
16 lines
490 B
16 lines
490 B
6 years ago
|
|
||
|
json.count @count
|
||
|
|
||
|
# 示例专业
|
||
|
json.template_ec_major_school do
|
||
|
json.partial! 'ecs/ec_major_schools/shared/ec_major_school', ec_major_school: @template_major_school
|
||
|
end
|
||
|
|
||
|
# 专业
|
||
|
json.ec_major_schools @major_schools do |ec_major_school|
|
||
|
json.partial! 'ecs/ec_major_schools/shared/ec_major_school', ec_major_school: ec_major_school
|
||
|
|
||
|
# 专业管理员
|
||
|
json.major_managers ec_major_school.users, partial: 'ecs/ec_major_schools/shared/ec_major_school', as: :user
|
||
|
end
|