simple_form-更改关联图例文本

如果我有一个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 %>
本文链接:https://www.f2er.com/2984355.html

大家都在问