-
Notifications
You must be signed in to change notification settings - Fork 0
Checkbox include_hidden for array values #2
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
https://guides.rubyonrails.org/form_helpers.html#basic-structure
Array parameters do not play well with the check_box helper. According to the HTML specification unchecked checkboxes submit no value. However it is often convenient for a checkbox to always submit a value. The check_box helper fakes this by creating an auxiliary hidden input with the same name. If the checkbox is unchecked only the hidden input is submitted. If it is checked then both are submitted but the value submitted by the checkbox takes precedence. There is a include_hidden option that can be set to false if you want to omit this hidden field. By default, this option is true.
Needs to be supported in the checkbox component
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request