Images can be places in
app/assets/images and then you can use them in erb, css/scss, and js/coffee files if you append .erb to the filename you can use the asset helpers such as
asset_url and so on. Also if you are using the
sass-rails gem you can use the
asset-url helper without needing to add the erb extension.