【问题标题】:Bootstrap, jQuery, and the Rails asset pipelineBootstrap、jQuery 和 Rails 资产管道
【发布时间】:2013-01-09 17:41:56
【问题描述】:

这是我的 application.js 清单。

//= require jquery
//= require jquery_ujs
//= require jquery.purr
//= require best_in_place
//= require jquery-ui
//= require bootstrap-dropdown
//= require bootstrap-modal
//= require_tree .

通过此设置,可排序 (JQuery)、下拉菜单 (bootstrap) 和模态 (bootstrap) 在 heroku 上的 PRODUCTION 中工作。

在 DEVELOPMENT 中,下拉菜单不起作用。

当我放置 bootstrap 需要 ABOVE jquery 时,所有 bootstrap 和 jquery 都停止工作。

【问题讨论】:

    标签: jquery ruby-on-rails jquery-ui asset-pipeline bootstrap-sass


    【解决方案1】:

    我通过在 development.rb 中使用 config.serve_static_assets = false 修复了本地下拉菜单不起作用。

    我将问题留在原处,以作为 application.js 清单中“要求”的可接受顺序参考。

    【讨论】:

      猜你喜欢
      • 2012-05-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多