我收到了错误
Selectize: Dependency MicroPlugin is missing
Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.
的application.js:
//= require jquery
//= require jquery_ujs
//= require selectize
//= require turbolinks
//= require bootstrap-sprockets
//= require jquery.validate
//= require jquery.validate.additional-methods
//= require_tree .
答案 0 :(得分:7)
我将application.js更改为
//= require selectize/standalone/selectize
我通过查看负载路径来解决这个问题
~/.rvm/gems/ruby-2.3.1/gems/rails-assets-selectize-0.12.3/app/assets/javascripts
,发现独立版位于/selectize/standalone/selectize.js
我知道通过查看their examples来看那里。