rails/rails — Issue #3838: ActionController::RoutingError apparently triggered from asset pipeline images
Author: Alamoz
Created: 2011-12-03 03:23:58+00:00
State: open

I'm experiencing a problem with Rails 3.1.x. It is occurring only for a particular JQuery-UI-Listbox png image, the other images in the directory are apparently loading. Here are the errors I get when rendering a page that includes JQuery-UI-Listbox:

Started GET "/assets/images/ui-bg_gloss-wave_16_808080_500x100.png" for 127.0.0.1 at 2011-12-02 17:57:38 -0800 Served asset /images/ui-bg_gloss-wave_16_808080_500x100.png - 404 Not Found (4ms)

ActionController::RoutingError (No route matches [GET] "/assets/images/ui-bg_gloss-wave_16_808080_500x100.png"):

rake assets:precompile has been run and the file ui-bg_gloss-wave_16_808080_500x100.png is present in /app/assets/images/jQuery-UI-Listbox/ and /public/assets/jQuery-UI-Listbox/. Very strange bug.

This problem is also affecting routing in those pages. When the "Logout" link is clicked (which redirects to logout_path), the page re-renders. Sometimes if you click "Logout" twice you can logout, and sometimes you simply can't log out when a JQuery-UI-Listbox is on the page. I haven't testing this to see if any other JQuery-UI widgets are causing this problem.