-
stash_redirect_for
raisesArgumentError
on invalid redirect URLProtects against storing a URL that
redirect_to
can't redirect to later. -
redirect_from_stashed
raisesActionController::StashedRedirects::MissingRedirectError
Useful to add a specific general fallback:
class ApplicationController < ActionController::Base rescue_from(ActionController::StashedRedirects::MissingRedirectError) { redirect_to root_url } end
- Initial release