Ruby on Rails Bootstrap Glyphicons not working

后端 未结 17 2050
Happy的楠姐
Happy的楠姐 2020-12-02 07:43

I have added bootstrap to my site. Here is the structure I am using. (I cannot whatsoever remove the bootstrap.css file since it I modified it to my liking).



        
17条回答
  •  一生所求
    2020-12-02 08:39

    Make sure you have set

    # config/environments/production.rb
    config.assets.compile = true
    

    And add fonts to precompile list

    # config/initializers/assets.rb
    config.assets.precompile += %w(*.eot *.svg *.ttf *.woff *.woff2)
    

提交回复
热议问题