Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Comparison between Twitter Bootstrap Gems for Rails [closed]

What are the advantages and/or disadvantages of the different gems providing Twitter Bootstrap's functionality to Rails? As of the time of writing this question, The Ruby Toolbox lists the following projects:

  • twitter-bootstrap-rails
  • bootstrap-sass
  • bootstrap_form
  • less-rails-bootstrap
  • anjlab-bootstrap-rails
  • compass_twitter_bootstrap
  • bootstrapped-rails
  • bootstrap-sass-rails
  • bootstrap-generators
  • css-bootstrap-rails
  • twitter-bootstrap-markup-rails
  • fennec
  • bootstrap-rails
  • compass-bootstrap
  • bootstrapped

And even some others providing partial functionality (e.g. generating forms). How do these gems differ?

P.S. If appropriate, please write about each gem in a separate answer, so that each one can be voted for.

like image 514
Hosam Aly Avatar asked May 14 '12 12:05

Hosam Aly


2 Answers

The gems use various ways of getting twitter bootstrap into your Rails app.

Quoted from an excellent blog post on the topic, Twitter Bootstrap, Less, and Sass: Understanding Your Options for Rails 3.1:

  • Using the original Less code via a Rails engine (less-rails-bootstrap or twitter-bootstrap-rails)
  • Copying in translated Sass code directly into your application (sass-twitter-bootstrap), or
  • Using a translated Sass version via a Rails engine (bootstrap-sass or bootstrap-rails).

Deciding which kind of approach you feel best about, will help you decide what gem to use.

like image 82
Zabba Avatar answered Sep 23 '22 02:09

Zabba


I use anjlab-bootstrap-rails.

  • It has these benefits: Its development is very active.
  • They released the 3rd version recently which includes the latest twitter bootstrap 3.
  • It also works with rails4.
  • One important aspect of bootstrap3 was that the icons were migrated from .png to font files which is great.

In general I am pleased with it.

like image 32
Boti Avatar answered Sep 19 '22 02:09

Boti