my whole rails app is getting css only from one file why

后端 未结 1 1332
再見小時候
再見小時候 2021-01-28 12:09

I had added different css files for both the controllers but my whole app is only taking css from the product.css

I had added different css files for both t

相关标签:
1条回答
  • 2021-01-28 12:28

    Okay you're using SCSS mixed with CSS, my advice would be to change product.css into product.scss and import the paths using

     @import '/*';
     @import '/**/*'; 
    

    Depending on your folder structure else rails will throw an error if it can't find any files because rails is not picking up the scss files.

    Also you could remove all the asset pipeline stuff and do @import 'font-awesome';

    0 讨论(0)
提交回复
热议问题