Update guides/source/form_helpers.md

Co-authored-by: Petrik de Heus <petrik@deheus.net>
This commit is contained in:
Claas Z 2022-05-11 16:48:34 +02:00 committed by GitHub
parent def782dfeb
commit 1cee625569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -985,7 +985,7 @@ The `fields_for` yields a form builder. The parameters' name will be what
}
```
The keys of the `:addresses_attributes` hash are unimportant; they need to be integers and different for each address.
The actual values of the keys in the `:addresses_attributes` hash are unimportant; however they need to be strings of integers and different for each address.
If the associated object is already saved, `fields_for` autogenerates a hidden input with the `id` of the saved record. You can disable this by passing `include_id: false` to `fields_for`.