image-url("rails.png"). All these weird hex characters at the end of your precompiled images will be respected automatically.I make some changes in the app/assets/stylesheets/.css.scss but it does not change anything on the website. .logo background-image: image-url("logo.png") The helpers image-path, asset-url, and asset-path can also be used.Use your application.js and application.css manifests to pull in your assets. Should I allow Rails to serve static files? Yes. Using asset hosts. By default, Rails links to these assets on the current host in the public folder, but you can direct Rails to link to assets from a dedicated asset server by setting ActionControllerimageurl(source, options ) Link. Computes the full URL to an image asset. I have a Rails app with the following in /app/assets/stylesheets/styles. css.erb: nestedbg background-position: left top background-image: url(< assetpath siteheader2.png >) background-repeat: repeat-x background-attachment: fixed When I run rake assets Go to /stylesheets/scaffolds.css.