Exception: ActionView::MissingTemplate

Inherits:
ActionViewError show all
Defined in:
lib/action_view/base.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(paths, path, template_format = nil) ⇒ MissingTemplate

Returns a new instance of MissingTemplate.


6
7
8
9
10
11
# File 'lib/action_view/base.rb', line 6

def initialize(paths, path, template_format = nil)
  full_template_path = path.include?('.') ? path : "#{path}.erb"
  display_paths = paths.join(':')
  template_type = (path =~ /layouts/i) ? 'layout' : 'template'
  super("Missing #{template_type} #{full_template_path} in view path #{display_paths}")
end