Skip to content

Instantly share code, notes, and snippets.

@plicjo
Created October 23, 2015 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plicjo/664d15000a6b5de59f1a to your computer and use it in GitHub Desktop.
Save plicjo/664d15000a6b5de59f1a to your computer and use it in GitHub Desktop.
Going different places after sign in and sign out in Devise
class ApplicationController < ActionController::Base
private
# Overwriting the sign_out redirect path method
def after_sign_out_path_for(resource_or_scope)
root_path
end
# Overwriting the sign_in redirect path method
def after_sign_out_path_for(resource_or_scope)
some_path
end
end
@plicjo
Copy link
Author

plicjo commented Oct 23, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment