_updateFields js should start with first list item position of 1, not 0 #1

Open
aepstein wants to merge 16 commits from aepstein/patch-1 into master
Showing only changes of commit 6d85276a4e - Show all commits

View File

@ -100,6 +100,14 @@ module Cocoon
partial ? partial : association.to_s.singularize + "_fields" partial ? partial : association.to_s.singularize + "_fields"
end end
def cocoon_wrapper(form_builder, &block)
content_tag(:div, :class => 'nested-fields') do
content_tag(:fieldset) do
capture(&block) << link_to_remove_association(t('.remove'), form_builder)
end
end
end
private private
def create_object_on_non_association(f, association) def create_object_on_non_association(f, association)