0
class SessionRestoreError < ActionControllerError #:nodoc:
0
- class MissingTemplate < ActionControllerError #:nodoc:
0
class RenderError < ActionControllerError #:nodoc:
0
def render_for_file(template_path, status = nil, use_full_path = false, locals = {}) #:nodoc:
0
add_variables_to_assigns
0
- assert_existence_of_template_file(template_path) if use_full_path
0
logger.info("Rendering #{template_path}" + (status ? " (#{status})" : '')) if logger
0
render_for_text(@template.render_file(template_path, use_full_path, locals), status)
0
extension = @template && @template.finder.pick_template_extension(template_name)
0
name_with_extension = !template_name.include?('.') && extension ? "#{template_name}.#{extension}" : template_name
0
@@exempt_from_layout.any? { |ext| name_with_extension =~ ext }
0
- def assert_existence_of_template_file(template_name)
0
- unless template_exists?(template_name) || ignore_missing_templates
0
- full_template_path = template_name.include?('.') ? template_name : "#{template_name}.#{@template.template_format}.erb"
0
- display_paths = view_paths.join(':')
0
- template_type = (template_name =~ /layouts/i) ? 'layout' : 'template'
0
- raise(MissingTemplate, "Missing #{template_type} #{full_template_path} in view path #{display_paths}")
0
def default_template_name(action_name = self.action_name)
Comments
No one has commented yet.