Closed
Description
I created a simple repository https://github.com/paul-mesnilgrente/rails-7-url to reproduce my problem. The only interesting part is in application.sass.scss: background-image: url('images/background.jpg')
. The file is app/assets/images/background.jpg
.
I tried a few variants of this path: /images/background.jpg
, ../images/background.jpg
, ./images/background.jpg
but nothing works. The translated URL in the browser will always give a 404.
I saw a few PRs (#489, #476) around this lately but I didn't find how to fix my problem still.
It feels very strange that it doesn't work on a fresh rails project and nobody complained about it so I must miss something simple...
Metadata
Metadata
Assignees
Labels
No labels