What's the difference between gems:
and which gem to use better in rails app?
twitter_bootstrap_sass was the first bootstrap gem provided by the community. It is deprecated and no longer being used.
bootstrap-sass-rails was the official bootstrap gem. It was provided by the community and endorsed by twitter until it was deprecated in 2014 and replaced by the bellow bootstrap-sass
bootstrap-sass is the official bootstrap gem provided by twitter for rails users. It is the currently recommended gem for adding bootstrap assets to your rails application.
The currently recommended way of including frontend assets is through Yarn. Yarn is a frontend package manager that is shipped with Rails 5.1.2. If you want to do it the Rails way, just run yarn add bootstrap
in your project directory and Yarn will handle downloading bootstrap for you. Then you can import bootstrap .css and .js files in your application manifests.
I would recommend that you use the bootstrap-sass
gem.
The bootstrap-sass-rails gem is deprecated and they recommend that you use bootstrap-sass directly (https://github.com/twbs/bootstrap-sass#a-ruby-on-rails)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With