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