instance method
render
Ruby on Rails 5.2.8.1
Since v3.2.22.5Signature
render(context, options, block)
No documentation comment.
Parameters
-
contextreq -
optionsreq -
blockreq
Source
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 297
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
render_partial
end
end
Defined in actionview/lib/action_view/renderer/partial_renderer.rb line 297
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::PartialRenderer