1

I have cloned one rails(3.2.13) project from git repository. CSS styles are working fine. But whole javascript plugins are not loading.

Eg: Bootstrap's dropdown(nav-list) list is not showing, ajax request is not working etc.

I have checked it by precompiling the assets but still it is not working. I have checked the same project with others, it is working fine for them. Please help me to solve this issue.

In application.js,

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

In jquery console, i am getting below errors,

Uncaught SyntaxError: Unexpected token ILLEGAL
Uncaught ReferenceError: $ is not defined
Uncaught ReferenceError: jQuery is not defined
Shruthi R
  • 1,863
  • 4
  • 39
  • 77
  • where is twitter/bootstrap located in your project? – Brian Wigginton Oct 17 '13 at 06:47
  • Sorry i don't know exact location because i have used bootstrap's gem & installation command to isntall bootstrap. Once we precompiled then it will display in /public/assets/twitter/bootstrap – Shruthi R Oct 17 '13 at 07:28
  • Hi Shruthi, everything seems to be okay for me, can you check these, http://stackoverflow.com/questions/10218587/twitter-bootstrap-drop-down-suddenly-not-working – devudilip Oct 17 '13 at 08:37
  • I am getting javascript errors also... i have put that errors above. – Shruthi R Oct 17 '13 at 08:58

1 Answers1

0

Add the below line to development.rb,

config.assets.debug = true

Here no need to precompile the assets.

Shruthi R
  • 1,863
  • 4
  • 39
  • 77