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

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

#messageObject



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

def message
	"Template '#{@path}' not found for '#{@controller}'"
end