]> git.openstreetmap.org Git - rails.git/commitdiff
Use delete method correctly when deleting traces
authorTom Hughes <tom@compton.nu>
Wed, 4 Dec 2019 21:06:19 +0000 (21:06 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 4 Dec 2019 21:06:19 +0000 (21:06 +0000)
Fixes #2453

app/views/traces/show.html.erb

index b25ecad5376345b0475d2e4fee1efc80c2b730a3..a9978fdc4608ec1df3fb11513c155248d7f63203 100644 (file)
@@ -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") } } %>
   </div>
 <% end %>