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