We are appending the hidden field now, not prepending
This commit is contained in:
parent
70bfd91b80
commit
e6fe814bbe
|
@ -138,7 +138,7 @@ module SimpleForm
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Prepend a hidden field to make sure something will be sent back to the
|
# Append a hidden field to make sure something will be sent back to the
|
||||||
# server if all checkboxes are unchecked.
|
# server if all checkboxes are unchecked.
|
||||||
hidden = template.hidden_field_tag("#{object_name}[#{attribute}][]", "", :id => nil)
|
hidden = template.hidden_field_tag("#{object_name}[#{attribute}][]", "", :id => nil)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue