 
 @update_destroy_button = (id) ->
   if id?
-    $("#destroy_button").attr("href", joinRoot(Routes.workflow_path(id)))
+    $("#destroy_button").attr("href", Routes.workflow_path(id))
     $("#destroy_button").data("method", "DELETE")
     $("#destroy_button").removeAttr("disabled")
     $("#destroy_button").unbind('click', false)


@update_edit_button = (id) ->
  if id?
    $("#edit_button").attr("href", joinRoot(Routes.edit_workflow_path(id)))
    $("#edit_button").removeAttr("disabled")
    $("#edit_button").unbind('click', false)
  else

    show_job_panel()
    $.ajax
      type: 'GET'
      url: Routes.workflow_path(id)
      contentType: "application/json; charset=utf-8"
      dataType: "json"
      error: (jqXHR, textStatus, errorThrown) ->
