Rails 6: How to search and filter index results
medium.com