Exception: ActionController::RedirectBackError

Inherits:
ActionControllerError show all
Defined in:
lib/action_controller/base.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.


47
48
49
# File 'lib/action_controller/base.rb', line 47

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