GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
I once submitted a patch to prevent fields_for from rendering hidden fields for the ID automatically. I just noticed that I forgot to document said option.
This patch adds the necessary documentation.
Just noticed, can you use the new hash style please? Thanks ❤️
oh man, this one always gets me 😓
It should be fixed now.
document :hidden_field_id option for fields_for
Merge pull request #8306 from senny/documentation_for_hidden_field_id
Document :hidden_field_id option for fields_for [ci skip]
Thanks mate ❤️
Isn't the include_id: false the option to use in order to disable hidden id generation or am I missing something?
f.fields_for :comments, include_id: false
@colddata yes it is, that's what it says on master (https://github.com/senny/rails/blob/master/actionview/lib/action_view/helpers/form_helper.rb#L694-L697)
This PR is one year old...
I see. Landed here from Google and didn't realize this was that old. Thank you for clarification.