CSS in Rails Asset Path not processed by ERB in development

前端 未结 6 1689
说谎
说谎 2021-01-03 05:51

I have a Rails app with the following in /app/assets/stylesheets/styles.css.erb:

...
#nestedbg {
    background-position: left top;
    backgrou         


        
6条回答
  •  半阙折子戏
    2021-01-03 06:14

    Bizarrely, I found that changing asset_path to asset_data_uri and then back to asset_path worked for me. Was using Rails 3.1.3 all along.

    Strange.

提交回复
热议问题