Exception: ActionController::RedirectBackError

Inherits:
AbstractController::Error show all
Defined in:
actionpack/lib/action_controller/metal/redirecting.rb

Overview

:nodoc:

Constant Summary collapse

DEFAULT_MESSAGE =
'No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure to specify request.env["HTTP_REFERER"].'

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ RedirectBackError

Returns a new instance of RedirectBackError.



5
6
7
# File 'actionpack/lib/action_controller/metal/redirecting.rb', line 5

def initialize(message = nil)
  super(message || DEFAULT_MESSAGE)
end