Skip to content

How to configure redirect after standard actions? #184

Answered by janko
whysthatso asked this question in Q&A
Discussion options

You must be logged in to vote

There are *_redirect configuration methods for various redirects, so in this case you could do:

change_password_redirect { rails_routes.profile_path } # or just "/profile"
change_login_redirect { rails_routes.profile_path } # or just "/profile"

There is also a default_redirect which most redirects default to, you can change it if you'd like most actions to the same place.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@whysthatso
Comment options

@janko
Comment options

Answer selected by whysthatso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants