From: Andy Allan Date: Thu, 30 Aug 2018 01:48:57 +0000 (+0800) Subject: Put the resourceful routing at the top of the list, for clarity X-Git-Tag: live~3485^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/8a4405dd0c3af7783d0cc9a4f864f4ee5cd0e71d Put the resourceful routing at the top of the list, for clarity --- diff --git a/config/routes.rb b/config/routes.rb index e912871e4..e277aba86 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -189,6 +189,7 @@ OpenStreetMap::Application.routes.draw do post "/preview/:type" => "site#preview", :as => :preview # traces + resources :traces, :except => [:show] get "/user/:display_name/traces/tag/:tag/page/:page" => "traces#index", :page => /[1-9][0-9]*/ get "/user/:display_name/traces/tag/:tag" => "traces#index" get "/user/:display_name/traces/page/:page" => "traces#index", :page => /[1-9][0-9]*/ @@ -207,7 +208,6 @@ OpenStreetMap::Application.routes.draw do get "/traces/mine/tag/:tag" => "traces#mine" get "/traces/mine/page/:page" => "traces#mine" get "/traces/mine" => "traces#mine" - resources :traces, :only => [:index, :new, :create, :edit, :update] post "/trace/create" => "traces#create" # remove after deployment get "/trace/create", :to => redirect(:path => "/traces/new") get "/trace/:id/data" => "traces#data", :id => /\d+/, :as => "trace_data"