Use the conventional 'destroy' method name for destroying traces

This commit is contained in:
Andy Allan 2019-12-04 11:59:18 +01:00
parent dba3940571
commit 44c6fdc273
5 changed files with 16 additions and 17 deletions

View file

@ -208,7 +208,6 @@ OpenStreetMap::Application.routes.draw do
get "/trace/create", :to => redirect(:path => "/traces/new")
get "/trace/:id/data" => "traces#data", :id => /\d+/, :as => "trace_data"
get "/trace/:id/edit", :to => redirect(:path => "/traces/%{id}/edit")
post "/trace/:id/delete" => "traces#delete", :id => /\d+/
# diary pages
resources :diary_entries, :path => "diary", :only => [:new, :create, :index] do