想必我的JavaScript文件都失去了太多......轉換的Rails 3.0.9到Rails 3.1.1和失去了我的樣式表
我從公衆移動樣式表/到App /資產/樣式表(FYI沒有發現他們在公共/資產中)。
搜索上的錯誤困惑我更多...
錯誤是ActionController的:: RoutingError(無路由匹配[GET] 「/assets/application.css」)
我純Rails 3.1應用程序的路線不提資產,但它工作正常。
application.css的內容
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*= require_self
*= require_tree .
*/
不知道還有什麼我應該把這裏除了我在下列指示(可能不是很好):Upgrade Rails 3 to 3.1
只有在我去http:// localhost:3000/assets/application.js – ScottJShea