Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning resource vs. redirecting #2011

Closed
anathematic opened this issue Aug 7, 2012 · 1 comment
Closed

Returning resource vs. redirecting #2011

anathematic opened this issue Aug 7, 2012 · 1 comment

Comments

@anathematic
Copy link

Hi guys,
This could be a responders related question but here goes:

For resources like Devise::PasswordsController#update - is there a built in way to return the source rather than redirecting?
For a quick fix I forked and changed:
respond_with resource, :location => after_sign_in_path_for(resource)

To:
respond_with resource

But I'm hoping for a neater fix.

Cheers!

@josevalim
Copy link
Contributor

Please use the mailing list for questions.

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

No branches or pull requests

2 participants