thoughtbot/administrate
Auf GitHub ansehenDocumentation suggestion for nested forms - HasOne
Open
#1.013 geöffnet am 25. Okt. 2017
bugdocumentationgood first issue
Repository-Metriken
- Stars
- (5.765 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 185T 7h) (8 gemergte PRs in 30 T)
Beschreibung
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.