instance method
first?
Ruby on Rails 4.2.9
Since v4.2.9Signature
first?()
Check if this is the first iteration of the partial.
Source
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 17
def first?
index == 0
end
Defined in actionview/lib/action_view/renderer/partial_renderer.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::PartialIteration