O'Reilly logo

Bootstrap for Rails by Syed Fazle Rahman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

Out of all the methods of importing/installing Bootstrap in a Rails project, I would definitely suggest you to go with the Sass way. Developers familiar with Sass should definitely go for it.

Sass allows developers to completely customize Bootstrap's default styles and behavior. As we will progress with this book, we will see how to customize Bootstrap through Sass. Sass brings modularity to the CSS world. It brings the programming capability in it. You can use variables, functions, inheritance, and so on using Sass.

CDN is another better alternative but is very risky. CDN is generally blocked in many secure networks. In such cases, your application will load without any Bootstrap files. CDN also reduces the performance of the web app by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required