       Spree.ajax
         type: "POST",
         dataType: "json",
-        url: delete_url.toString(),
+        url: delete_url,
         data: {
           _method: "delete",
-          token: Spree.api_key
         },
         error: handle_ajax_error
     else

    root.base_url = Spree.routes.taxonomy_taxons_path

    Spree.ajax
      url: Spree.url(base_url.path().replace("/taxons", "/jstree")).toString(),
      success: (taxonomy) ->
        last_rollback = null


          json_data:
            data: taxonomy,
            ajax:
              headers: { "X-Spree-Token": Spree.api_key }
              url: (e) ->
                "#{base_url}/#{e.prop('id')}/jstree"
          themes:
