   jConfirm Spree.translations.are_you_sure_delete, Spree.translations.confirm_delete, (r) ->
     if r
       Spree.ajax
-        type: "POST",
+        type: "DELETE",
         dataType: "json",
         url: delete_url,
-        data: {
-          _method: "delete",
-        },
         error: handle_ajax_error
     else
       $.jstree.rollback(last_rollback)

  url = "#{base_url}/#{node.prop("id")}"

  Spree.ajax
    type: "POST",
    dataType: "json",
    url: url,
    data: {
      _method: "put",
      "taxon[name]": name,
    },
    error: handle_ajax_error


  url = "#{base_url}/#{node.prop("id")}"
  Spree.ajax
    type: "PUT",
    dataType: "json",
    url: url,
    data: ({"taxon[parent_id]": new_parent.prop("id"), "taxon[child_index]": position }),
    error: handle_ajax_error

  true
