Skip to content

Instantly share code, notes, and snippets.

Avatar
📗
Building railsdevs in public.

Joe Masilotti joemasilotti

📗
Building railsdevs in public.
View GitHub Profile
@joemasilotti
joemasilotti / bootstrap4_breadcrumbs_builder.rb
Last active Oct 22, 2019 — forked from SaladFork/bootstrap4_breadcrumbs_builder.rb
`breadcrumbs_on_rails` builder with Bootstrap 4 compatible output
View bootstrap4_breadcrumbs_builder.rb
# `Bootstrap4BreadcrumbsBuilder `is a Bootstrap 4 (alpha6) compatible breadcrumb
# builder. It is designed to work with the `breadcrumbs_on_rails` gem as a
# drop-in builder replacement.
#
# Bootstrap4BreadcrumbsBuilder accepts a limited set of options:
#
# | option | default | description |
# | ---------------- | ------- | ------------------------------------------ |
# | `:container_tag` | `:ol` | What tag to use for the list container |
# | `:tag` | `:li` | What HTML tag to use for breadcrumb items |