Twitter bootstrap: do I need both bootstrap-sass and twitter-bootstrap-rails gems?

后端 未结 2 1548
情深已故
情深已故 2021-02-09 13:42

I have the following entries my (Rails 3.2.13) Gemfile:

gem \'twitter-bootstrap-rails\'
gem \'bootstrap-sass\'

and in app/assets/javascripts/ap

2条回答
  •  名媛妹妹
    2021-02-09 14:00

    No you do not need both.

    Just simply put this in your gemfile:

    gem 'sass-rails'
    gem 'bootstrap-sass'
    

    This in application.css.scss:

    @import 'bootstrap';
    @import 'bootstrap-responsive';
    

    This in application.js

    //= require bootstrap
    

    If you're still having problems you may need to look at the ordering of things in your manifest files..

提交回复
热议问题