]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/1972'
authorTom Hughes <tom@compton.nu>
Wed, 5 Sep 2018 17:41:17 +0000 (18:41 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 5 Sep 2018 17:41:17 +0000 (18:41 +0100)
1  2 
config/routes.rb

diff --combined config/routes.rb
index ed12cdf9257fa991e6ffe1b31b41cf296d3956bf,2cf18e33498db6ea0a282c085c5908c8c86f4419..16c05fea5f1a852ed5b6b9622e9149558a382399
@@@ -208,8 -208,10 +208,8 @@@ OpenStreetMap::Application.routes.draw 
    get "/traces/mine/tag/:tag" => "traces#mine"
    get "/traces/mine/page/:page" => "traces#mine"
    get "/traces/mine" => "traces#mine"
 -  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"
 -  post "trace/:id/edit" => "traces#update" # remove after deployment
    get "/trace/:id/edit", :to => redirect(:path => "/traces/%{id}/edit")
    post "/trace/:id/delete" => "traces#delete", :id => /\d+/
  
    post "/user/:display_name/diary/:id/unsubscribe" => "diary_entry#unsubscribe", :as => :diary_entry_unsubscribe, :id => /\d+/
  
    # user pages
-   get "/user/:display_name" => "user#view", :as => "user"
+   get "/user/:display_name" => "user#show", :as => "user"
    match "/user/:display_name/make_friend" => "user#make_friend", :via => [:get, :post], :as => "make_friend"
    match "/user/:display_name/remove_friend" => "user#remove_friend", :via => [:get, :post], :as => "remove_friend"
    match "/user/:display_name/account" => "user#account", :via => [:get, :post]