伙计,这些东西都是什么鬼啊。你知道Rails 3.1中那行代码的实际作用吗?
<script src="/assets/defaults.js" type="text/javascript"></script>
正如ESPN所说的:“来吧,伙计。”
我知道资产不再被视为二等公民。但在这个发行候选版中,它们似乎甚至无法获得绿卡。在新的app/assets/javascripts/application.js中:
// 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.
//
//= require jquery
//= require jquery_ujs
//= require_tree .
所以,我应该下载jQuery吗?我该怎么做?因为那个javascript目录里除了application.js什么都没有。
很烦人。但是它是免费的,所以我在抱怨什么?无论如何,这些问题似乎相当基础,但我会感激您提供的任何帮助。