sajad torkamani

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:

@use '../../../vendor/stylesheets/bootstrap/bootstrap.scss';

(Optional) Pin the JS file

If you need to use Bootstrap components requiring JS, then run:

./bin/importmap pin bootstrap

and import the bootstrap JS in app/assets/javascripts/application.js:

import 'bootstrap'

Sources