0
我试图使用checklist-model角模块没有父母,但它提出这个错误,我想不通:角清单模型会因组元素
No parent form group element found for input element <input type="checkbox"
value="correlation" name="question[insights][enable][]"
id="question_insights_enable_correlation" ng-model="checked"
class="ng-scope ng-pristine ng-untouched ng-valid" bs-validation="">
单元由轨道限定:
<%= insights_form.check_box("enable", {:multiple => true,
'checklist-model' => "model.enabled_insights"}, :correlation, nil) %>
导致:
<input checklist-model="model.enabled_insights" type="checkbox" value="correlation"
name="insights[enable][]" id="insights_enable_correlation" />
如果我删除清单模型ATTR ibute,错误消失。我用google搜索了这个错误,但找不到任何经历它的人参考。