2016-11-14 6 views
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=""> 

を私はチェックリストモデルATTRを削除した場合

<input checklist-model="model.enabled_insights" type="checkbox" value="correlation" 
    name="insights[enable][]" id="insights_enable_correlation" /> 

:その結果

<%= insights_form.check_box("enable", {:multiple => true, 
    'checklist-model' => "model.enabled_insights"}, :correlation, nil) %> 

ibute、エラーは消え去る。私は、エラーを探知したが、それを経験している他の人への参照を見つけることができません。

答えて

0

これは、コードの別の枝に追加されたbootstrap-angular-validationライブラリの問題であることが判明しました。

チェックボックスの要素を<div class="form-group">にラップしてください。