123456789_123456789_123456789_123456789_123456789_

Exception: AbstractController::ActionNotFound

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, StandardError
Instance Chain:
self, DidYouMean::Correctable, StandardError
Inherits: StandardError
  • ::Object
Defined in: actionpack/lib/abstract_controller/base.rb

Overview

Raised when a non-existing controller action is triggered.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(message = nil, controller = nil, action = nil) ⇒ ActionNotFound

This method is for internal use only.
[ GitHub ]

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

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

Instance Attribute Details

#action (readonly)

This method is for internal use only.
[ GitHub ]

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

attr_reader :controller, :action # :nodoc:

#controller (readonly)

This method is for internal use only.
[ GitHub ]

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

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 23

def corrections # :nodoc:
  @corrections ||= DidYouMean::SpellChecker.new(dictionary: controller.class.action_methods).correct(action)
end