Exception: Flame::Errors::TemplateNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/flame/errors/template_not_found_error.rb

Overview

Error for not found template file in Render

Instance Method Summary collapse

Constructor Details

#initialize(controller, path) ⇒ TemplateNotFoundError

Create a new instance of error

Parameters:

  • controller (Flame::Controller)

    controller from which template not found

  • path (String, Symbol)

    path of not founded template



11
12
13
14
15
# File 'lib/flame/errors/template_not_found_error.rb', line 11

def initialize(controller, path)
  controller = controller.class unless controller.is_a? Class

  super("Template '#{path}' not found for '#{controller}'")
end