I have jpg in the my / app / assets / images directory and I use it as a background with the following CSS.
body { background-image: image_url('metal_texture.jpg') }
The asset_url helper also works in this case. Since the Rails 4 pipeline does not care about which directory in / app / assets is placed in the file, is there any reason to use image_url vs asset_url?
source share