thoughtbot/administrate
Vedi su GitHubDocumentation suggestion for nested forms - HasOne
Open
#1013 aperta il 25 ott 2017
bugdocumentationgood first issue
Metriche repository
- Star
- (5765 star)
- Metriche merge PR
- (Merge medio 185g 7h) (8 PR mergiate in 30 g)
Descrizione
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.