back_to_referer_after_form

Adds a redirect_back_or_to method so after edit/create/destroy it redirects to the FORM referer (usually two steps back from the action) or to the explicit redirection target if there’s no place to get back.

Warning

Versions Prior 0.1.6 includes the module in ApplicationController in a bad way breaking the application. DO NOT USE VERSIONS <= 0.1.5

Using

Contributing to back_to_referer_after_form

Copyright © 2011 Alfredo Daniel Rezinovsky. See LICENSE.txt for further details.