class ActionView::Renderer

def render(context, options)

Main render entry point shared by Action View and Action Controller.
def render(context, options)
  if options.key?(:partial)
    render_partial(context, options)
  else
    render_template(context, options)
  end
end