Refactor settings routes and menu
Use sub controllers/routes for the sections
This commit is contained in:
@@ -10,10 +10,11 @@ Rails.application.routes.draw do
|
||||
match 'signup/:step', to: 'signup#steps', as: :signup_steps, via: [:get, :post]
|
||||
post 'signup_validate', to: 'signup#validate'
|
||||
|
||||
get 'settings', to: 'settings#index'
|
||||
post 'settings_reset_password', to: 'settings#reset_password'
|
||||
|
||||
get 'security', to: 'security#index'
|
||||
namespace :settings do
|
||||
get 'profile', to: 'profile#index'
|
||||
get 'security', to: 'security#index'
|
||||
post 'reset_password', to: 'security#reset_password'
|
||||
end
|
||||
|
||||
namespace :contributions do
|
||||
root to: 'donations#index'
|
||||
|
||||
Reference in New Issue
Block a user