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

35 lines
610 B

6 years ago
# repertoires: [{. //主标签
# id: 1,
# name: '前端开发',
# sub_repertoires: [
# {
# id: 1,
# name: '前端基础',
# tags: [
# id: 1,
# name: 'HTML'
# ]
# }
# ]
# }]
# json.array! @repertoires do |rep|
# json.id rep.id
# json.name rep.name
# json.sub_repertoires do
# json.array! rep.sub_repertoires do |sub|
# json.id sub.id
# json.name sub.name
# json.tags do
# json.array! sub.tag_repertoires do |tag|
# json.id tag.id
# json.name tag.name
# end
# end
# end
# end
# end
json.array! @repertoires
6 years ago