X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e731dd71a77ad4ad1e9db22535e89444bb98e5d9..dcd55590709ab18657cdbe5ab4ddd5e360ba6b43:/app/views/traces/show.html.erb diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index 0ebbd827f..a9978fdc4 100644 --- a/app/views/traces/show.html.erb +++ b/app/views/traces/show.html.erb @@ -59,6 +59,6 @@ <% if current_user == @trace.user %> <%= link_to t(".edit_trace"), edit_trace_path(@trace), :class => "button" %> <% end %> - <%= button_to t(".delete_trace"), { :controller => "traces", :action => "delete", :id => @trace.id }, { :data => { :confirm => t(".confirm_delete") } } %> + <%= button_to t(".delete_trace"), { :controller => "traces", :action => "destroy", :id => @trace.id }, { :method => :delete, :data => { :confirm => t(".confirm_delete") } } %> <% end %>