- Change root route
- Add RootController
This commit is contained in:
parent
270d28f6da
commit
f4db1a16f8
3 changed files with 50 additions and 1 deletions
14
app/controllers/root_controller.rb
Normal file
14
app/controllers/root_controller.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
class RootController < ApplicationController
|
||||
def index
|
||||
|
||||
if user_signed_in?
|
||||
redirect_to users_dossiers_path
|
||||
elsif gestionnaire_signed_in?
|
||||
redirect_to backoffice_path
|
||||
elsif administrateur_signed_in?
|
||||
redirect_to admin_procedures_path
|
||||
else
|
||||
redirect_to new_user_session_path
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue