class AbstractController::ActionNotFound

Raised when a non-existing controller action is triggered.

def corrections # :nodoc:

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

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

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