Redirecting from an update action to the referrer of the edit
- by Mark Westling
My Rails 2.3 application has a User model and the usual controller actions. The edit form can be reached two ways: when a user edits his own profile from the home page, or when an admin user edits someone else's profile from users collection.
What I'd like to do is have the update action redirect back to the referred of the edit action, not the…