【发布时间】:2012-01-14 11:01:44
【问题描述】:
大概我的 Javascript 文件也丢失了……
我将样式表从 public/ 移动到 app/assets/stylesheets (仅供参考,也没有在 public/assets 中找到它们)。
搜索错误让我更加困惑......
错误是 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
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3