Merge branch 'formtastic_input' of github.com:johnbintz/cocoon into formtastic_input
This commit is contained in:
commit
0484ccbab5
@ -100,6 +100,14 @@ module Cocoon
|
||||
partial ? partial : association.to_s.singularize + "_fields"
|
||||
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
|
||||
|
||||
def create_object_on_non_association(f, association)
|
||||
|
Loading…
Reference in New Issue
Block a user