I generated a scaffold in ruby and I want to insert a background image to every page on the site but Im not sure what the link to the image should be.
my image is
If your image is in app/assets/images/dep.jpg, then in the css file in rails you should write background: url('/assets/dep.jpg');
app/assets/images/dep.jpg
background: url('/assets/dep.jpg');
You don't have to put the image in the public folder this way.