Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从包含查询中呈现 JSON 格式的网格?下面的代码只输出文件夹。
Folder.includes(:grids) render json: @folders, :include => :grids, root: false
ActiveModelSerializer...!
类 FolderSerializer < ActiveModel::Serializer 属性 :id, :name, :grids end