首先在Gemfile
文件中添加:
gem 'bootstrap-sass', '3.3.6'
然后执行bundle install
接下来,在css
文件中加入两行代码:
@import "bootstrap-sprockets";
@import "bootstrap";
可能出现的问题
Invalid CSS after "body ": expected selector or at-rule, was "{"
原因是:@import "bootstrap"
的后面少了;