Rails: How to set a background image in rails from css?

后端 未结 14 1403
太阳男子
太阳男子 2020-12-08 06:01

I am using rails 3.2 and i have to set a background for one of the page and i have tried many ways and nothing went right, so looking for some good help. I have tried

14条回答
  •  温柔的废话
    2020-12-08 06:55

    [CONTEXT] Ruby 2.6.3 | Rails 6.0.1 | Using webpack to bundle stylesheets.

    I realized I couldn't deliver images from the asset pipeline in [s]css from webpack files: for instance, Asset Helpers from sass-rails are unavailable.

    After some struggle, I found the solution on https://stackoverflow.com/a/57175231/8131629

提交回复
热议问题