The background image does not work


I have the background image for a basic rails site I made working fine but when I pushed it up to heroku it gave me the following error

Failed to load resource: the server responded with a status of 404 (Not Found)

here is the code from my css file

body {
  background: url(/assets/joy.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;

I have several other pics uploaded and working fine anyone know why this is not working on heroku, but is still working locally?

try using image-url('joy.jpg') instead of url

This answer may give more info for you: How to reference images in CSS within Rails 4