Exception: ActionView::MissingTemplate

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

Overview

:nodoc:

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (MissingTemplate) initialize(paths, path, details, partial)

A new instance of MissingTemplate



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'actionpack/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

- (Object) path (readonly)

Returns the value of attribute path



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

def path
  @path
end