mirror of https://github.com/rails/rails
Update guides/source/form_helpers.md
Co-authored-by: Petrik de Heus <petrik@deheus.net>
This commit is contained in:
parent
def782dfeb
commit
1cee625569
|
@ -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`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue