From: Tom Hughes Date: Wed, 4 Dec 2019 21:06:19 +0000 (+0000) Subject: Use delete method correctly when deleting traces X-Git-Tag: live~3004 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/86b355c4df6708b6f72878dd74fd860e5d95cadc Use delete method correctly when deleting traces Fixes #2453 --- 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 %>