We are appending the hidden field now, not prepending

This commit is contained in:
Carlos Antonio da Silva 2012-01-31 17:29:55 -02:00
parent 70bfd91b80
commit e6fe814bbe
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ module SimpleForm
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.
hidden = template.hidden_field_tag("#{object_name}[#{attribute}][]", "", :id => nil)