bigbinary/admin_data — Issue #86: Asset routing issues
Author: brentmc79
Created: 2011-11-02 18:37:29+00:00
State: open

When I go to /admin_data in my app, the page renders but all of the assets are missing. Images, stylesheets, javascript, everything. I thought maybe it was related to my catchall route, so as a test I removed all routes from my routes file and tried again, but I saw the same results.

From the browser console:
GET http://localhost:3000/assets/vendor/jquery_form.js 404 (Not Found)
GET http://localhost:3000/assets/base.css 404 (Not Found)
GET http://localhost:3000/assets/vendor/jquery-1.4.2.js 404 (Not Found)
GET http://localhost:3000/assets/vendor/jquery-ui-1.7.2.custom.min.js 404 (Not Found)
GET http://localhost:3000/assets/vendor/log.js 404 (Not Found)
GET http://localhost:3000/assets/vendor/jquery-ui-1.7.2.custom.css 500 (Internal Server Error)
GET http://localhost:3000/assets/vendor/rails.js 404 (Not Found)
GET http://localhost:3000/assets/misc/drop_down_change.js 404 (Not Found)
GET http://localhost:3000/assets/misc/quick_search_input_focus.js 404 (Not Found)
GET http://localhost:3000/assets/advance_search/global_ajax_setting.js 404 (Not Found)
GET http://localhost:3000/assets/misc/js_util.js 404 (Not Found)
GET http://localhost:3000/assets/site.png 500 (Internal Server Error)

And I get a bunch of these in the rails log:
Started GET "/assets/base.css" for 127.0.0.1 at 2011-11-02 14:24:16 -0400
Served asset /base.css - 404 Not Found (10ms)

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