instance method
nested_child_index
Ruby on Rails 5.2.8.1
Since v3.0.20 PrivateSignature
nested_child_index(name)
No documentation comment.
Parameters
-
namereq
Source
# File actionview/lib/action_view/helpers/form_helper.rb, line 2321
def nested_child_index(name)
@nested_child_index[name] ||= -1
@nested_child_index[name] += 1
end
Defined in actionview/lib/action_view/helpers/form_helper.rb line 2321
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormBuilder