I think there's an easier way - rake task assets:precompile:nondigest can be used in production to build all assets without their hashes, and then you can rewrite images/css urls into assets folders to let them pick compiled assets from there, or just symlink relevant folders into assets.
On Oct 26, 1:18 pm, Dmytrii Nagirniak <[email protected]> wrote: > 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/sa... > > Then register it: > > register_postprocessor 'text/css', CssImagesReplacement > > Packaging it as a gem would be pretty awesome. > -- 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.
