Exception: AbstractController::ActionNotFound
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
StandardError
|
|
Instance Chain:
self,
DidYouMean::Correctable,
StandardError
|
|
Inherits: |
StandardError
|
Defined in: | actionpack/lib/abstract_controller/base.rb |
Overview
Raised when a non-existing controller action is triggered.
Class Method Summary
- .new(message = nil, controller = nil, action = nil) ⇒ ActionNotFound constructor Internal use only
Instance Attribute Summary
- #action readonly Internal use only
- #controller readonly Internal use only
Instance Method Summary
- #corrections Internal use only
Constructor Details
.new(message = nil, controller = nil, action = nil) ⇒ ActionNotFound
This method is for internal use only.
# 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 (readonly)
This method is for internal use only.
[ GitHub ]
# File 'actionpack/lib/abstract_controller/base.rb', line 14
attr_reader :controller, :action # :nodoc:
#controller (readonly)
This method is for internal use only.
[ GitHub ]
# File 'actionpack/lib/abstract_controller/base.rb', line 14
attr_reader :controller, :action # :nodoc:
Instance Method Details
#corrections
This method is for internal use only.
[ GitHub ]
# File 'actionpack/lib/abstract_controller/base.rb', line 25
def corrections # :nodoc: @corrections ||= DidYouMean::SpellChecker.new(dictionary: controller.class.action_methods).correct(action) end