Search and Autocomplete in Rails Apps

0
9
views

Searching is one of the most common features found on virtually any website. There are numerous solutions out there for easily incorporating search into your application, but in this article I’ll discuss Postgres’ native search in Rails applications powered by the pg_search gem. On top of that, I’ll show you how to add an autocomplete feature with the help of the select2 plugin. I’ll explore three examples of employing search and autocomplete features in Rails applications. Specifically, this article covers: building a basic search feature discussing additional options supported by pg_search building autocomplete functionality to display matched user names using…
Search and Autocomplete in Rails Apps