Open jaysneg opened 6 years ago
@jaysneg Nice idea! @elorest WDYT?
@jaysneg what do you mean "when using multi params it breaks the request?" Can you provide a more verbose example of what you're trying to do?
when you have group of checkboxes.
for example search form with list of brands and you want to select a few and send to server
and at server you will get brands => ["adidas", "0" , "Nike"]
so in this case we don't need unchecked_value
if checkbox unchecked server did not get this parameter
@jaysneg Great, good example.
Rails uses an option called include_hidden
to toggle this behavior, and I think we should follow that pattern. Is that reasonable?
@robacarp sounds great
check_box helper did not need unchecked_value when using multi params it brake request
why do not left default behavior?
and add somthing like this