Exception: ActionView::MissingTemplate

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MissingTemplate.



8
9
10
11
12
13
14
# File 'lib/action_view/base.rb', line 8

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end