我试图在rails 6中使用gem select2-rails中的select2。我已经添加了gemfile gem "select2-rails",运行了bundle和yarn add select2,以及.js require("select2")上的inport,但是当我尝试使用时$(...).select2 is not a function
我是怎么搞定这个的?
我正在尝试测试一个使用的示例Rails应用程序。我已经在之后安装了gem。/selecttest/app/views/layouts/application.html.erb where line #5 raised:
couldn't find file 'select2/TEST_PROJECTS/selecttest/app/assets/stylesheets/application.