Ruby on Rails #150 Global Search
about 1 month ago
·
Global search
allows you to search multiple attributes of multiple models in a single search form.
For example, on superails.com 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: https://github.com/corsego/150-global-search/commit/6c25c09caac09a14056d570f389b56303ee97470
Based on this blogpost: https://blog.corsego.com/search-multiple-models
0:00 Global Search examples
2:02 Basic global search
11:02 Advanced global search
23:30 Final demo
Comments
Sign in to join the conversation
Recommended based on what you are watching now

23:49
Code Along Video Subscription App #14: Infinite Nested Comments, Embed Vimeo Videos

28:57
Live talk: Hotwire, ViewComponent, StimulusJS in production (my experience )

12:57
Ruby on Rails #29 Action Mailer: Send emails with Amazon Simple Email Service in production

39:35
#155 Generate, store, email PDF invoices. DocRaptor API, HTML to PDF, ActiveStorage, ActionMailer

10:59
Please make a video for ignoring diacritics in search. Thank you!