Exception: ActionView::MissingTemplate
- Inherits:
-
ActionViewError
- Object
- StandardError
- ActionViewError
- ActionView::MissingTemplate
- Defined in:
- lib/action_view/template/error.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(paths, path, details, partial) ⇒ MissingTemplate
constructor
A new instance of MissingTemplate.
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
#path ⇒ Object (readonly)
Returns the value of attribute path.
28 29 30 |
# File 'lib/action_view/template/error.rb', line 28 def path @path end |