         $(target).remove()
 
       callback()
-


    extractAndInsertForm formPath, rapper


  $(document).on 'click', 'a.button.polymorphic_has_many_remove', (e)->
    e.preventDefault()
    parent    = $(@).closest '.polymorphic_has_many_container'

    if sortable_input.length
      sortable_input.val if destroy_input.is ':checked' then '' else position++

window.extractAndInsertForm = (url, target)->
  target = $ target

  $.get url, (data)->
