jejacks0n/mercury — Issue #111: Does not use asset-url helper to load images through CSS
Author: ljfc
Created: 2011-12-12 16:15:24+00:00
State: open

Hi,

This is a great piece of work, it has made editing my sites a whole lot easier!

One small issue I've noticed is that if you switch on adding of digests in the asset pipeline, the Mercury default CSS does not pick up the changed filenames.

I.E. It still looks for `url(/assets/mercury/toolbar/primary/preview.png)`, not `url(/assets/mercury/toolbar/primary/preview-61b5ba1a229d05afa3cd0f5f8215c196.png)`.

I think this is because the CSS files use the regular `url()` handler, and not one of the new helpers outlined here:
http://guides.rubyonrails.org/asset_pipeline.html#coding-links-to-assets

Is this something that can be changed, or is it required for backwards-compatibility with Rails 3.0?

Kind regards,

Leo