thoughtbot/administrate
Voir sur GitHubDocumentation suggestion for nested forms - HasOne
Open
#1 013 ouverte le 25 oct. 2017
bugdocumentationgood first issue
Métriques du dépôt
- Stars
- (5 765 stars)
- Métriques de merge PR
- (Merge moyen 185j 7h) (8 PRs mergées en 30 j)
Description
It would be useful to explain that in order to have a has_one association in a form, one has to add
has_one :thing
accepts_nested_attributes_for :thing
to the parent model. Saying this because the Field::HasOne already supports nested form and allows the params.