HOME > プログラミング > Ruby on Rails Couldn’t find the element to insert the template. Make sure your `data-association-insertion-*` on `link_to_add_association` is correct. 2020.10.07 Ruby on Rails railsでcocoonを使って複数のフィールド追加を試みていたところタイトルのエラーが発生 結論から言えば` .nested-items を追加しておらず、どこにフォームを入れて良いかjs側が理解していないことが問題でした 参考記事 なし