Exception: Flame::Errors::TemplateNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- Flame::Errors::TemplateNotFoundError
- Defined in:
- lib/flame/errors/template_not_found_error.rb
Overview
Error for not found template file in Render
Instance Method Summary collapse
-
#initialize(controller, path) ⇒ TemplateNotFoundError
constructor
A new instance of TemplateNotFoundError.
- #message ⇒ Object
Constructor Details
#initialize(controller, path) ⇒ TemplateNotFoundError
Returns a new instance of TemplateNotFoundError.
7 8 9 10 11 |
# File 'lib/flame/errors/template_not_found_error.rb', line 7 def initialize(controller, path) @controller = controller @controller = @controller.class unless @controller.is_a? Class @path = path end |
Instance Method Details
#message ⇒ Object
13 14 15 |
# File 'lib/flame/errors/template_not_found_error.rb', line 13 def "Template '#{@path}' not found for '#{@controller}'" end |