Exception: AbstractController::ActionNotFound
- Inherits:
 - 
      StandardError
      
        
- Object
 - StandardError
 - AbstractController::ActionNotFound
 
 
- Includes:
 - DidYouMean::Correctable
 
- Defined in:
 - 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:
      14 15 16 17 18  | 
    
      # File 'lib/abstract_controller/base.rb', line 14 def initialize( = nil, controller = nil, action = nil) # :nodoc: @controller = controller @action = action super() end  | 
  
Instance Attribute Details
#action ⇒ Object (readonly)
:nodoc:
      12 13 14  | 
    
      # File 'lib/abstract_controller/base.rb', line 12 def action @action end  | 
  
#controller ⇒ Object (readonly)
:nodoc:
      12 13 14  | 
    
      # File 'lib/abstract_controller/base.rb', line 12 def controller @controller end  | 
  
Instance Method Details
#corrections ⇒ Object
:nodoc:
      23 24 25  | 
    
      # File 'lib/abstract_controller/base.rb', line 23 def corrections # :nodoc: @corrections ||= DidYouMean::SpellChecker.new(dictionary: controller.class.action_methods).correct(action) end  |