{"record":{"id":"d44c8a139e3bdb4f","repo":"padrino/padrino-framework","slug":"template-template-path-not-found-in-view-p","errorCode":null,"errorMessage":"Template '#{template_path}' not found in '#{view_path}'","messagePattern":"Template '#(.+?)' not found in '#(.+?)'","errorType":"exception","errorClass":"TemplateNotFound","httpStatus":null,"severity":"error","filePath":"padrino-helpers/lib/padrino/rendering.rb","lineNumber":305,"sourceCode":"      # @example\n      #   get \"/foo\", provides: [:html, :js] do; render 'path/to/foo'; end\n      #   # If you request \"/foo.js\" with I18n.locale == :ru => [:\"/path/to/foo.ru.js\", :erb]\n      #   # If you request \"/foo\" with I18n.locale == :de => [:\"/path/to/foo.de.haml\", :haml]\n      #\n      def resolve_template(template_path, options = {})\n        template_path = template_path.to_s\n        controller_key = respond_to?(:request) && request.respond_to?(:controller) && request.controller\n        rendering_options = [template_path, content_type || :html, locale]\n\n        settings.cache_template_path([\"#{controller_key}/#{template_path}\", rendering_options[1], rendering_options[2]]) do\n          options = DEFAULT_RENDERING_OPTIONS.merge(options)\n          view_path = options[:views] || settings.views || './views'\n\n          template_candidates = glob_templates(view_path, template_path)\n          selected_template = select_template(template_candidates, *rendering_options)\n          selected_template ||= template_candidates.first unless options[:strict_format]\n\n          raise TemplateNotFound, \"Template '#{template_path}' not found in '#{view_path}'\" if !selected_template && options[:raise_exceptions]\n          selected_template\n        end\n      end\n\n      ##\n      # Return the I18n.locale if I18n is defined.\n      #\n      def locale\n        I18n.locale if defined?(I18n)\n      end\n\n      def resolve_layout(layout, options = {})\n        layouts_path = options[:layout_options] && options[:layout_options][:views] || options[:views] || settings.views || './views'\n        template_path = settings.fetch_layout_path(layout, layouts_path)\n        rendering_options = [template_path, content_type || :html, locale]\n\n        settings.cache_template_path(rendering_options) do\n          template_candidates = glob_templates(layouts_path, template_path)","sourceCodeStart":287,"sourceCodeEnd":323,"githubUrl":"https://github.com/padrino/padrino-framework/blob/167044f3d56b2bce12f943eb826fdb0b0ea94375/padrino-helpers/lib/padrino/rendering.rb#L287-L323","documentation":"Error \"Template '#{template_path}' not found in '#{view_path}'\" thrown in padrino/padrino-framework.","triggerScenarios":"Thrown at padrino-helpers/lib/padrino/rendering.rb:305 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"167044f3d56b2bce12f943eb826fdb0b0ea94375","analyzedAt":"2026-08-23T12:41:41.049Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}