1

I've an app with rails3 using jQuery by default and twitter-bootstrap-rails and got a problem.

jQuery seems to be included twice, causing links using :remote => true to be called twice too..

If i put the return of javscript_include_tag :application in my app directly and do some tests i got the following:

  • jquery.js with no application.js => remote links works perfectly
  • jquery.js with application.js => remote links called twice
  • no jquery.js but application.js at the top => remote links called twice too

My application.js just contain:

//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require_tree .

Any ideas how to resolve this problem cleanly ?

mu is too short
  • 426,620
  • 70
  • 833
  • 800
dashie
  • 303
  • 1
  • 2
  • 11

1 Answers1

0

Just found this post that solves the issue. Its a bug with the asset pipeline and was filed here.

Community
  • 1
  • 1
flynfish
  • 5,857
  • 3
  • 24
  • 33