Presumably my Javascript files are lost too…
I moved the stylesheets from public/ to app/assets/stylesheets (FYI did not find them in public/assets either).
Searching on the error confused me more…
Error is ActionController::RoutingError (No route matches [GET]
“/assets/application.css”)
My routes for a pure Rails 3.1 app do not mention assets and yet it works fine.
Content of 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 .
*/
Not sure what else I should put here other than I was following these directions (probably not well): Upgrade Rails 3 to 3.1
In Rails 3.1 with the asset pipeline enabled, all assets (javascripts, css, and images) are accessible via the
assetspath in the browser and no longer viajavascriptsandstylesheetsas before. This is because Rails manipulates your assets (compiles, bundles and minifies).Be sure to watch the Railscasts episode on the Asset Pipeline.