Method: ActionView::TemplateRenderer#render

Defined in:
actionview/lib/action_view/renderer/template_renderer.rb

#render(context, options) ⇒ Object



5
6
7
8
9
10
11
12
# File 'actionview/lib/action_view/renderer/template_renderer.rb', line 5

def render(context, options)
  @details = extract_details(options)
  template = determine_template(options)

  prepend_formats(template.format)

  render_template(context, template, options[:layout], options[:locals] || {})
end