method
raise_missing_template_exception
v2.1.0 -
Show latest stable
- Class:
ActionView::Template
raise_missing_template_exception()private
No documentation available.
# File actionpack/lib/action_view/template.rb, line 81
def raise_missing_template_exception
full_template_path = @path.include?('.') ? @path : "#{@path}.#{@view.template_format}.erb"
display_paths = @finder.view_paths.join(':')
template_type = (@path =~ /layouts/i) ? 'layout' : 'template'
raise(MissingTemplate, "Missing #{template_type} #{full_template_path} in view path #{display_paths}")
end