Redirect back to / after logout
This commit is contained in:
parent
6182078cdd
commit
6b54bc2847
1 changed files with 6 additions and 0 deletions
|
|
@ -53,9 +53,15 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
# Define where the user is redirected to after a successful login.
|
# Define where the user is redirected to after a successful login.
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
my_welcome_path
|
my_welcome_path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Overwriting the sign_out redirect path method
|
||||||
|
def after_sign_out_path_for(resource_or_scope)
|
||||||
|
root_path
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue