Ruby on Rails #150 Global Search

09/11/2023 (5 months ago)
search sql

Global search allows you to search multiple attributes of multiple models in a single search form.

For example, on when you perform a search in the navbar you get results for Posts, Tags, Playlists.

We will build a scalable global search, so that you can easily add new models and attributes to search on.

This video topic was suggested by @Elgnonvis . Want me to do a video about a topic? Add your ideas in the ocmments.

Episode source code:
Based on this blogpost:

0:00 Global Search examples
2:02 Basic global search
11:02 Advanced global search
23:30 Final demo

Sign in to join the conversation