application.css not being served as an asset

前端 未结 3 3346
遇见更好的自我
遇见更好的自我 2021-02-20 18:52

EDIT 4, 5 and 6

8 hours in, any more ideas are welcome :) Maybe this bug is already known and solved, but I get the behaviour I described in edit 2&

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-20 19:35

    To keep things simple I like to use the .css.scss exstension and use:

    li {
        background-image: image-url("logo_80px_80px.png");
    }
    

    Full reference can be found on Rails Guides under Section 2.2.2.

提交回复
热议问题