I have placed my css in stylesheets folder and image in images folder. Both of these folders are in public folder of my rails application. However, I keep getting these errors:
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"):
What am I doing wrong? Thanks.
Looks like you are using 3.1. Try putting your stylesheet and js files under the assets directory. see the section on how to use the asset pipeline here