My .css.erb file uses the asset_path helper to add image urls like so:
background: url(<%= asset_path('bg_image.gif') %>);
I would expect the asset_path helper to append a md5 fingerprint, like it does in the view files when doing rake assets:precompile. But in the compiled css the url simply becomes:
background: url(/assets/bg_image.gif)
That way loading of images referenced from css works but is slow. I'd like the css to used the fingerprinted versions obviously.
Anybody know what the issue is? Maybe I need to file a bug with rails.