rails/rails — Issue #3427: asset_path conflict
Author: adrianpike
Created: 2011-10-24 22:36:01+00:00
State: open

Hey all,

We've been using a named route to /assets/ in a production app for a while now, and when upgrading to 3.1, we got a conflict on the Sprockets assets. config.assets.prefix makes them accessible and compile correctly, but stylesheet_link_tag and javascript_include_tag throw RoutingErrors.

Looking into ActionPack, it looks like a namespace issue with asset_path, rails_helper.rb#54. All the otther *_paths are aliased to avoid named routes, but asset_path isn't.

I've got a branch where I added the alias and use it instead of asset_path, I'll get a pull request in in a few minutes once I add some more tests and make sure there's no regressions.