From: Andy Allan Date: Wed, 15 Jan 2025 12:49:34 +0000 (+0000) Subject: Merge pull request #5449 from AntonKhorev/edit-preferences X-Git-Tag: live~7 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b8a1a904c6273252c56998178b69f5f65d744d69 Merge pull request #5449 from AntonKhorev/edit-preferences Make preferences page editable without clicking 'Edit Preferences' --- b8a1a904c6273252c56998178b69f5f65d744d69 diff --cc config/routes.rb index 479d35346,5bda1b37c..d2b2830fd --- a/config/routes.rb +++ b/config/routes.rb @@@ -276,15 -275,14 +276,16 @@@ OpenStreetMap::Application.routes.draw get "/user/:display_name/account", :to => redirect(:path => "/account/edit") post "/user/:display_name/set_status" => "users#set_status", :as => :set_status_user - resource :account, :only => [:edit, :update, :destroy] - - namespace :account do - resource :deletion, :only => [:show] + resource :account, :only => [:edit, :update, :destroy] do + scope :module => :accounts do + resource :terms, :only => [:show, :update] + resource :deletion, :only => :show + end end + resource :dashboard, :only => [:show] - resource :preferences, :only => [:show, :edit, :update] + resource :preferences, :only => [:show, :update] + get "/preferences/edit", :to => redirect(:path => "/preferences") resource :profile, :only => [:edit, :update] # friendships