Exception: AbstractController::ActionNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- AbstractController::ActionNotFound
- Defined in:
- lib/abstract_controller/base.rb
Overview
Raised when a non-existing controller action is triggered.
Defined Under Namespace
Classes: Correction
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
Instance Method Summary collapse
-
#initialize(message = nil, controller = nil, action = nil) ⇒ ActionNotFound
constructor
A new instance of ActionNotFound.
Constructor Details
#initialize(message = nil, controller = nil, action = nil) ⇒ ActionNotFound
Returns a new instance of ActionNotFound.
13 14 15 16 17 |
# File 'lib/abstract_controller/base.rb', line 13 def initialize( = nil, controller = nil, action = nil) @controller = controller @action = action super() end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
12 13 14 |
# File 'lib/abstract_controller/base.rb', line 12 def action @action end |
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
12 13 14 |
# File 'lib/abstract_controller/base.rb', line 12 def controller @controller end |