0

If I have a simple_form association (as: :checkboxes), how can I customize the text that appears inside the legend tag?

Jason Swett
  • 43,526
  • 67
  • 220
  • 351

1 Answers1

0

I discovered how, with some help from 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 %>
Jason Swett
  • 43,526
  • 67
  • 220
  • 351