Class: Reactive::Mvc::View::MissingTemplate
- Defined in:
- lib/reactive-mvc/view/base.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(paths, path, template_format = nil) ⇒ MissingTemplate
constructor
A new instance of MissingTemplate.
Constructor Details
#initialize(paths, path, template_format = nil) ⇒ MissingTemplate
Returns a new instance of MissingTemplate.
7 8 9 10 11 12 |
# File 'lib/reactive-mvc/view/base.rb', line 7 def initialize(paths, path, template_format = nil) full_template_path = path.include?('.') ? path : "#{path}.*" display_paths = paths.join(':') template_type = (path =~ /layouts/i) ? 'layout' : 'template' super("Missing #{template_type} #{full_template_path} in view path #{display_paths}") end |