Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds sign_in/sign_out redirect paths
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
class ApplicationController < ActionController::Base | ||
protect_from_forgery | ||
|
||
private | ||
def after_sign_in_path_for(resource_or_scope) | ||
applicants_path | ||
end | ||
|
||
def after_sign_out_path_for(resource_or_pool) | ||
thank_you_path | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="center hero-unit"> | ||
<h1>Thank you for signing out.</h1> | ||
<p> | ||
You may <%= link_to "log back in", new_user_session_path %> at any time, or <%= link_to "start from the beginning", root_path %>. | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters