0

My javascripts are not working when i have = require_tree . inside my application.js, if i delete it then my js.erb for a view some_view.js.erb is not working.

My application.js file:

/*
 = require jquery
 = require jquery_ujs
 = require jquery-1.7.1.min
 = require jquery.validate.min
 = require jquery-ui-1.8.23.custom.min
 = require jquery.cookie
 = require_self
 = require_tree .
 */

Any ideas why this is happening?

4

1 回答 1

0

该文件的正确清单文件格式application.js如下所示:

 //= require_self
 //= require jquery
 //= require jquery_ujs
 //= require jquery.validate.min
 //= require jquery-ui-1.8.23.custom.min
 //= require jquery.cookie
 //= require_tree .
于 2013-05-21T16:59:32.343 回答