The only easy way to do it for now - is to write a Sprockets processor that 
would magically replace all the url(path) to the url(asset-path-with-hash).

For example - 
https://github.com/sstephenson/sprockets/blob/master/lib/sprockets/safety_colons.rb

Then register it:

      register_postprocessor 'text/css', CssImagesReplacement


Packaging it as a gem would be pretty awesome.


On 26/10/2011, at 6:45 PM, Chris Berkhout wrote:

> Is there a way to have the CSS and the images packaged as assets
> without modifying the CSS to use the asset_path helper?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to