RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Bootstrap 5 in Rails 7

In article this article I’ll show you how to use Bootstrap 5 in Rails 7

JavaScript:

$ bin/importmap pin bootstrap
// app/javascript/application.js
// ...
import 'bootstrap'

CSS:

# Gemfile
# ...
gem 'bootstrap', '~> 5.1.3'
# ...
// app/assets/stylesheets/application.scss
// ...
@import "bootstrap";
// ...

https://blog.eq8.eu/til/how-to-use-bootstrap-5-in-rails-7.html

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in