Ruby on Rails #94 Rails 7 Select Box with Search using Slim-Select

01/11/2022 (over 1 year ago)

I was planning to create a short episode on enabling slim-select, but it ended up having a big boilerplate for adding select and multiselect. If you don't need the boilerplate, feel free to skip to 9:25.

The boilerplat app uses Importmaps for JS and Tailwind for CSS.

I like slim-select because it uses vanilla javascript and does not rely on jQuery. If you don't like slim-select, the second best alternative is tom-select.

Episode source code:
Text version:

Sign in to join the conversation