instance method
collection_with_template
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v6.0.6 PrivateSignature
collection_with_template()
No documentation comment.
Source
# File actionpack/lib/action_view/renderer/partial_renderer.rb, line 342
def collection_with_template
segments, locals, template = [], @locals, @template
as, counter = @variable, @variable_counter
locals[counter] = -1
@collection.each do |object|
locals[counter] += 1
locals[as] = object
segments << template.render(@view, locals)
end
segments
end
Defined in actionpack/lib/action_view/renderer/partial_renderer.rb line 342
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::PartialRenderer