如果我有一个simple_form关联(as: :checkboxes
),如何自定义legend
标记内显示的文本?
Murphy_zhu_qiang 回答:simple_form-更改关联图例文本
在this answer的帮助下,我发现了如何。
<%= f.association :inventory_sublocations,collection: location.inventory_sublocations,label: 'my custom label',# "my custom label" will appear inside the legend tag
as: :check_boxes %>