method
emitted_hidden_id?
v7.1.3.4 -
Show latest stable
- Class:
ActionView::Helpers::FormBuilder
emitted_hidden_id?()public
No documentation available.
# File actionview/lib/action_view/helpers/form_helper.rb, line 2665
def emitted_hidden_id? # :nodoc:
@emitted_hidden_id ||= nil
end 1Note
The purpose of this method
This method keeps track of whether a hidden id field needs to be created when the form builder is generating fields for a nested model. It gets set to true by #hidden_field when that method is used to create a field named 'id'.
Here's an example of what this can be useful for: http://railsforum.com/viewtopic.php?id=39640