gpt4 book ai didi

ruby-on-rails - 如何在我的 Rails 项目中使用 Rails Selectize?

转载 作者:行者123 更新时间:2023-12-03 15:33:02 26 4
gpt4 key购买 nike

我遇到了错误

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.

应用程序.js:

//= require jquery
//= require jquery_ujs
//= require selectize
//= require turbolinks
//= require bootstrap-sprockets
//= require jquery.validate
//= require jquery.validate.additional-methods
//= require_tree .

最佳答案

我将 application.js 更改为

//= require selectize/standalone/selectize

我通过查看加载路径弄明白了

~/.rvm/gems/ruby-2.3.1/gems/rails-assets-selectize-0.12.3/app/assets/javascripts

并发现 standalone 在 /selectize/standalone/selectize.js

我知道通过查看 their examples 来查看那里.

关于ruby-on-rails - 如何在我的 Rails 项目中使用 Rails Selectize?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39556778/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com