ruby on rails 3.2 - Rails3 installing Jquery plugins disables javascript altogether -
i'm running rails 3.2.13 rvm. each time want install new jquery plugin (i tried tablesorter http://tablesorter.com/ ) javascript frozen, , other plugins used work (miraculously, ends doing so, magic...) disabled , when uninstall last culprit , elements, still don't work anymore, sending me stone-age each-time...
here application.js:
//= require jquery //= require jquery_ujs //= require jquery-ui //= require_tree . //= require jquery.ui.datepicker-fr //= require best_in_place
i had managed have date_picker , best_in_place work @ same time. have installed , uninstalled tablesorter, neither of them works anymore...
it extremely frustrating. after numerous readings, think has either assets pipeline (which makes absolute mess of public/assets folder...) or rvm caching of assets... have in application.rb:
config.assets.enabled = true
i set because use heroku in production, need assets compiled there.
i read many questions , answers relating assets pipeline mess, either complex me comprehend, or people wrote them supposed readers experts when aren't, , didn't go enough details in simple words, or context didn't apply case, either because related rails version prior mine or didn't use heroku , suggested disable assets pipeline, needed there...
could knowledgeable enough please take few minutes explain, in simple words , detailed actions undertaken, going on , should ? think must not 1 undergoing ordeal.
i appreciate help.
put //= require_tree .
@ last.
you calls plugins should placed @ last.
Comments
Post a Comment