You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trevorturk edited this page Sep 20, 2010
·
11 revisions
Normally, after a user edits their profile they are redirected to the root_path. To have Devise redirect to a custom route after an update, follow these steps:
Make sure you already have a copy of the registrations_controller.rb from Devise in your /app/controllers directory
Anywhere on the file. Include this method
defafter_update_path_for(resource)edit_user_registration_path# You can put whatever path you want hereend
The above code, will redirect the user back to the edit page, after the form submits.