From 86b355c4df6708b6f72878dd74fd860e5d95cadc Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 4 Dec 2019 21:06:19 +0000 Subject: [PATCH] Use delete method correctly when deleting traces Fixes #2453 --- app/views/traces/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/traces/show.html.erb b/app/views/traces/show.html.erb index b25ecad53..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 => "destroy", :method => :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 %> -- 2.39.5