Setup Bootstrap in Rails
11 March 2022 (Updated 23 April 2022)
On this page
Download the SCSS files
Download the zip from here.
Copy the scss
directory into a vendor/stylesheets/bootstrap/
directory in your Rails project.
Import the Bootstrap stylesheets in app/assets/stylesheets/application.scss
:
(Optional) Pin the JS file
If you need to use Bootstrap components requiring JS, then run:
and import the bootstrap JS in app/assets/javascripts/application.js
:
Sources
Tagged:
Rails tooling
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment