method
render
v4.2.9 -
Show latest stable
-
0 notes -
Class: PartialRenderer
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0 (0)
- 3.2.1 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- 4.0.2 (0)
- 4.1.8 (0)
- 4.2.1 (0)
- 4.2.7 (0)
- 4.2.9 (0)
- 5.0.0.1 (0)
- 5.1.7 (0)
- 5.2.3 (0)
- 6.0.0 (0)
- 6.1.3.1 (0)
- 6.1.7.7 (0)
- 7.0.0 (0)
- 7.1.3.2 (0)
- 7.1.3.4 (0)
- What's this?
render(context, options, block)
public
Hide source
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 292 def render(context, options, block) setup(context, options, block) identifier = (@template = find_partial) ? @template.identifier : @path @lookup_context.rendered_format ||= begin if @template && @template.formats.present? @template.formats.first else formats.first end end if @collection instrument(:collection, :identifier => identifier || "collection", :count => @collection.size) do render_collection end else instrument(:partial, :identifier => identifier) do render_partial end end end