我的sinatra應用程序使用了Jammit的assets.yml文件。Jammit和分組軟件包括
下面是我想要完成但不能完成的一個例子。
application: &application
- app/assets/js/vendor/jquery-2.1.1.js
- app/assets/js/vendor/underscore.js
- app/assets/js/underscore.strings.js
other_app:
- <<: *application
- app/assets/js/underscore.strings.js
- app/assets/js/vendor/angularjs/angular.js
- app/assets/js/vendor/angularjs/angular-sanitize.js
- app/assets/js/vendor/angular_plugins/**/*.js
這是我得到
no implicit conversion of Hash into String
這是很容易爲包括我的佈局其他包的錯誤,但是這意味着越來越多的請求,我能不容易意味着需要資產訂單。 (例如,此包需要在之前包含角)。
堅持半天的谷歌搜索導致什麼都沒有! 謝謝!
我相信,只有其壓痕問題,沒有別的。您可以在http://yaml-online-parser.appspot.com/上驗證您的.yml內容。並嘗試它,清楚地表明它無法正確解析它。 – 2014-10-17 21:21:07