我已將CSS放入樣式表文件夾和圖像文件夾中的圖像。這兩個文件夾都在我的rails應用程序的公共文件夾中。但是,我不斷收到這些錯誤:RoR路由錯誤
Started GET "/assets/blueprint/print.css" for 127.0.0.1 at Sat Nov 12 07:36:49 -0500 2011
Served asset /blueprint/print.css - 404 Not Found (2ms)
ActionController::RoutingError (No route matches [GET] "/assets/blueprint/print.css"):
Rendered /Library/Ruby/Gems/1.8/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.3ms)
Started GET "/assets/custom.css" for 127.0.0.1 at Sat Nov 12 07:36:49 -0500 2011
Served asset /custom.css - 404 Not Found (2ms)
ActionController::RoutingError (No route matches [GET] "/assets/custom.css"):
Rendered /Library/Ruby/Gems/1.8/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.4ms)
Started GET "/assets/logo.png" for 127.0.0.1 at Sat Nov 12 07:36:49 -0500 2011
Served asset /logo.png - 404 Not Found (3ms)
ActionController::RoutingError (No route matches [GET] "/assets/logo.png"):
我在做什麼錯?謝謝。
感謝您的快速答覆。它現在正在工作,但是這是在控制檯中登錄的:「服務資產/custom.css-304未修改(0ms)」。 304是某種錯誤還是這是正常的?再次感謝。 – 0xSina
這是沒有什麼可擔心的 - 它只是意味着資源自上次投放以來並未發生變化 - 請參閱http://www.checkupdown.com/status/E304.html – chrispanda
這僅僅是資源沒有的信息因此可以使用緩存(請參閱[HTTP狀態代碼](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)並在那裏搜索304。 – mliebelt