Exception: AbstractController::ActionNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
actionpack/lib/abstract_controller/base.rb

Overview

Raised when a non-existing controller action is triggered.

Defined Under Namespace

Classes: Correction

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, controller = nil, action = nil) ⇒ ActionNotFound

Returns a new instance of ActionNotFound.


13
14
15
16
17
# File 'actionpack/lib/abstract_controller/base.rb', line 13

def initialize(message = nil, controller = nil, action = nil)
  @controller = controller
  @action = action
  super(message)
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action


12
13
14
# File 'actionpack/lib/abstract_controller/base.rb', line 12

def action
  @action
end

#controllerObject (readonly)

Returns the value of attribute controller


12
13
14
# File 'actionpack/lib/abstract_controller/base.rb', line 12

def controller
  @controller
end