Exception: ActionController::RedirectBackError
- Inherits:
-
AbstractController::Error
- Object
- StandardError
- AbstractController::Error
- ActionController::RedirectBackError
- Defined in:
- 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
-
#initialize(message = nil) ⇒ RedirectBackError
constructor
A new instance of RedirectBackError.
Constructor Details
#initialize(message = nil) ⇒ RedirectBackError
Returns a new instance of RedirectBackError.
5 6 7 |
# File 'lib/action_controller/metal/redirecting.rb', line 5 def initialize( = nil) super( || DEFAULT_MESSAGE) end |