From 383a840c50ca8f6df19677e93357e9dc6c0e043c Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 9 Oct 2020 12:48:13 +0200 Subject: Enable switching Agent Switching current Agent can help with roles and resource access. Go to your dashboard by clicking the avatar. Select agent and hit "Select" --- config/routes.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index fdecb3d..0de14b5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -19,8 +19,7 @@ Rails.application.routes.draw do # User routes get '/my/account', to: 'users#show', as: 'account' - get '/my/current_agent', to: 'agent_switch#new', as: 'new_agent_switch' - put '/my/current_agent', to: 'agent_switch#update', as: 'update_agent_switch' + patch '/my/current_agent', to: 'my/agent#switch', as: 'agent_switch' get '/my/dashboard', to: 'welcome#dashboard' get 'my/users', to: 'users#index', as: 'users' -- cgit v1.2.3