42dev/bower-rails — pull request #49 by jimpo (2013-12-11 07:53:02+00:00)
Title: Fix relative URLs in bower components

There are many bower components with CSS files that have relative image URLs in them. For example, Bootstrap 2, jQuery UI, and JCrop all do this. This is fine in development, but when the assets are compiled with `rake assets:precompile`, the links to these images break. This is why Rails has [special helpers](http://guides.rubyonrails.org/asset_pipeline.html#coding-links-to-assets) for asset links.

I have created a `bower:resolve` task to replace all relative paths to an `asset_path` call. This way all CSS files in bower components will work in both development and production.