method
new
new(paths, path, prefixes, partial, details, *)
public
Hide source
# File actionpack/lib/action_view/template/error.rb, line 31 def initialize(paths, path, prefixes, partial, details, *) @path = path prefixes = Array.wrap(prefixes) template_type = if partial "partial" elsif path =~ /layouts/ 'layout' else 'template' end searched_paths = prefixes.map { |prefix| [prefix, path].join("/") } out = "Missing #{template_type} #{searched_paths.join(", ")} with #{details.inspect}. Searched in:\n" out += paths.compact.map { |p| " * #{p.to_s.inspect}\n" }.join super out end