We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
To make an association select remote, add remote: true to the view.
remote: true
= f.association :my_association, remote: true
You also need to have a by_query scope defined on the autocompleted model.
by_query
class My::Model < ApplicationRecord ... pg_search_scope :by_query, against: %i[field1 field2], ignoring: :accents, using: { tsearch: { prefix: true } } ... end