class ActionView::TemplateRenderer

def find_layout(layout, keys)

the given name exists across all details before raising the error.
context object. If no layout is found, it checks if at least a layout with
This is the method which actually finds the layout using details in the lookup
def find_layout(layout, keys)
  with_layout_format { resolve_layout(layout, keys) }
end