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

    $(form).on 'submit', -> return false

    $(target).replaceWith(form)


window.remoteSubmit = (target, callback)->
  $(target).data('remote', true)

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

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

  $.get url, (data)->
