我有两个问题.
>我错误地假设我的所有JavaScript应该被压缩到application.js默认情况下在rails 3.1甚至在开发模式?
>如果没有,那么为什么我的标签有我所有的30个我的javascripts,并承担加载?
我的application.js文件如下所示:
//= require jquery //= require jquery_ujs //= require jquery-ui //= require_tree .
在浏览器中,它被渲染为:
// This is a manifest file that'll be compiled into including all the files listed below. // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically // be included in the compiled file accessible from http://example.com/assets/application.js // It's not advisable to add code directly here,but if you do,it'll appear at the bottom of the // the compiled file. // ;
虽然我所有的其他javascript都被渲染了.
谢谢一堆!