Exception: ActionView::MissingTemplate

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(paths, path, details, partial) ⇒ MissingTemplate

Returns a new instance of MissingTemplate.


30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/action_view/template/error.rb', line 30

def initialize(paths, path, details, partial)
  @path = path
  display_paths = paths.compact.map{ |p| p.to_s.inspect }.join(", ")
  template_type = if partial
    "partial"
  elsif path =~ /layouts/i
    'layout'
  else
    'template'
  end

  super("Missing #{template_type} #{path} with #{details.inspect} in view paths #{display_paths}")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path


28
29
30
# File 'lib/action_view/template/error.rb', line 28

def path
  @path
end