Twitter bootstrap: do I need both homing and tweeter bootstrap rails?

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

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

and in app / assets / javascripts / application.js:

//= require twitter/bootstrap

and at the top of app / assets / stylesheets / custom.css.scss:

@import 'bootstrap'

Is this the "right one"? Do I need both twitter-bootstrap-rails and bootstrap-sass (or maybe bootstrap-sass-rails), or are they redundant and possibly conflict? Is javascript required for bootstrap sass for the framework or just CSS?

+5
source share
2 answers

SASS, boostrap-sass bootstrap-sass-rails. Twitter-bootstrap-rails LESS. , , . javascript .

LESS-, ( , )

, gems github, Rails, .

+9

, .

gemfile:

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

application.css.scss:

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

application.js

//= require bootstrap

- , .

+11

All Articles