[英]jQuery lib include conflict with rails3 and twitter-bootstrap-rails
I've an app with rails3 using jQuery by default and twitter-bootstrap-rails and got a problem. 我有一个默认情况下使用jQuery和twitter-bootstrap-rails的带有rails3的应用程序,出现了问题。
jQuery seems to be included twice, causing links using :remote => true
to be called twice too.. jQuery似乎被包含两次,导致使用
:remote => true
链接也被调用两次。
If i put the return of javscript_include_tag :application
in my app directly and do some tests i got the following: 如果我直接将
javscript_include_tag :application
的返回值放在我的应用程序中并进行一些测试, javscript_include_tag :application
得到以下结果:
My application.js just contain: 我的application.js仅包含:
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require_tree .
Any ideas how to resolve this problem cleanly ? 有什么想法可以彻底解决这个问题吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.