Skip to content

Instantly share code, notes, and snippets.

@lorenadl
Last active March 21, 2022 12:25
Show Gist options
  • Save lorenadl/340cbced710c6eb14ab63bebb9745db1 to your computer and use it in GitHub Desktop.
Save lorenadl/340cbced710c6eb14ab63bebb9745db1 to your computer and use it in GitHub Desktop.
[Rails] Autocomplete

Building an autocomplete drop-down list with Ruby on Rails

https://medium.com/@topspinj/country-drop-down-list-92e6f3552f58

https://select2.org/

Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.

The select2-rails gem integrates the Select2 jQuery plugin with the Rails asset pipeline.

https://github.com/argerim/select2-rails

Search and Autocomplete in Rails Apps

https://www.sitepoint.com/search-autocomplete-rails-apps/

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search

https://github.com/Casecommons/pg_search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment