method
render
v5.0.0.1 -
Show latest stable
- Class:
ActionView::PartialRenderer
render(context, options, block)public
No documentation available.
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 295
def render(context, options, block)
setup(context, options, block)
@template = find_partial
@lookup_context.rendered_format ||= begin
if @template && @template.formats.present?
@template.formats.first
else
formats.first
end
end
if @collection
render_collection
else
instrument(:partial) do
render_partial
end
end
end