Put hidden input after the collection to fix layout issue

This commit is contained in:
Carlos Antonio da Silva 2012-01-31 10:47:42 -02:00
parent 5aaa775d89
commit 05110a9c65
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ module SimpleForm
# server if all checkboxes are unchecked.
hidden = template.hidden_field_tag("#{object_name}[#{attribute}][]", "", :id => nil)
wrap_rendered_collection(hidden << rendered_collection, options)
wrap_rendered_collection(rendered_collection << hidden, options)
end
# Wrapper for using simple form inside a default rails form.