Use the conventional 'destroy' method name for destroying traces
This commit is contained in:
parent
dba3940571
commit
44c6fdc273
5 changed files with 16 additions and 17 deletions
|
@ -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", :method => :delete, :id => @trace.id }, { :data => { :confirm => t(".confirm_delete") } } %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue