Redirect back to / after logout

This commit is contained in:
Christoph Haas 2018-08-10 16:21:02 +02:00
parent 6182078cdd
commit 6b54bc2847

View file

@ -53,9 +53,15 @@ class ApplicationController < ActionController::Base
end
end
private
# Define where the user is redirected to after a successful login.
def after_sign_in_path_for(resource)
my_welcome_path
end
# Overwriting the sign_out redirect path method
def after_sign_out_path_for(resource_or_scope)
root_path
end
end