the “bootstrap-sass” doesn't work with rails 3.2.2

前端 未结 4 1021
不思量自难忘°
不思量自难忘° 2021-02-06 19:39

I create a new rails project,and add

gem \'bootstrap-sass\'

to my Gemfile, then I run bundle install and every things going good.

4条回答
  •  温柔的废话
    2021-02-06 20:29

    Remove all the comments at the top of the application.css and rename application.css to either application.sass or application.css.scss depending on how you want to do your css'ing Then add:

    @import 'bootstrap'
    

    This should allow you to start using bootstrap, providing you have indeed included the bootstrap-sass gem correctly and ran bundle install afterwards.

提交回复
热议问题