【发布时间】:2020-12-07 17:15:42
【问题描述】:
我有 3 个级别的类别。目前,作为 check_box 的关联为我提供了 1 级列表,因此无法判断我是否从 1 级中选择了 3 级项目。
- 1 级
- 2 级
- 3 级
- 2 级
有没有办法在 Parent > Child type of grouped indentation 中列出我的类别?
<%= f.association :categories, :include_blank => false, as: :check_boxes, label: false %>
【问题讨论】:
标签: ruby-on-rails forms checkbox nested associations