lib/action_view/renderer/template_renderer.rb
# This is the method which actually finds the layout using details in the lookup
# context object. If no layout is found, it checks if at least a layout with
# the given name exists across all details before raising the error.
This is the method which actually finds the layout using details in the lookup
context object. If no layout is found, it checks if at least a layout with
the given name exists across all details before raising the error.
This is the method which actually finds the layout using details in the lookup context object . If no layout is found it checks if at least a layout with the given name exists across all details before raising the error .
def find_layout(layout, keys)
      begin
        with_layout_format do
          layout =~ /^\// ?
            with_fallbacks { find_template(layout, nil, false, keys) } : find_template(layout, nil, false, keys)
        end
      rescue ActionView::MissingTemplate
        update_details(:formats => nil) do
          raise unless template_exists?(layout)
        end
      end
    end
def find_layout ( layout , keys ) begin with_layout_format do layout =~ / ^ \/ / ? with_fallbacks { find_template ( layout , nil , false , keys ) } : find_template ( layout , nil , false , keys ) end rescue ActionView :: MissingTemplate update_details ( :formats => nil ) do raise unless template_exists? ( layout ) end end end
This is the method which actually finds the layout using details in the lookup
context object.
This is the method which actually finds the layout using details in the lookup context object .
layout
keys