Saturday, January 14, 2012

ActionController::RoutingError (No route matches [GET] "/assets/scaffold.css"):

In rails 3 applications, if any application doesn't refer static resources(js,images,css) such as

ActionController::RoutingError (No route matches [GET] "/assets/scaffold.css")
ActionController::RoutingError (No route matches [GET] "/assets/defaults.js")
ActionController::RoutingError (No route matches [GET] "/assets/logo.png")

Fix for those issues would be

Stylesheets will be in app/assets/stylesheets
Images will be in app/assets/images
javascripts will be in app/assets/javascripts


No comments:

Post a Comment