demarches-normaliennes/app/controllers/root_controller.rb
Xavier J f4db1a16f8 - Change root route
- Add RootController
2015-10-26 16:10:38 +01:00

14 lines
No EOL
329 B
Ruby

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