Exception: AbstractController::ActionNotFound
- Includes:
- DidYouMean::Correctable
- Defined in:
- actionpack/lib/abstract_controller/base.rb
Overview
Raised when a non-existing controller action is triggered.
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
:nodoc:.
-
#controller ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#corrections ⇒ Object
:nodoc:.
-
#initialize(message = nil, controller = nil, action = nil) ⇒ ActionNotFound
constructor
:nodoc:.
Constructor Details
#initialize(message = nil, controller = nil, action = nil) ⇒ ActionNotFound
:nodoc:
16 17 18 19 20 |
# File 'actionpack/lib/abstract_controller/base.rb', line 16 def initialize( = nil, controller = nil, action = nil) # :nodoc: @controller = controller @action = action super() end |
Instance Attribute Details
#action ⇒ Object (readonly)
:nodoc:
14 15 16 |
# File 'actionpack/lib/abstract_controller/base.rb', line 14 def action @action end |
#controller ⇒ Object (readonly)
:nodoc:
14 15 16 |
# File 'actionpack/lib/abstract_controller/base.rb', line 14 def controller @controller end |
Instance Method Details
#corrections ⇒ Object
:nodoc:
25 26 27 |
# File 'actionpack/lib/abstract_controller/base.rb', line 25 def corrections # :nodoc: @corrections ||= DidYouMean::SpellChecker.new(dictionary: controller.class.action_methods).correct(action) end |