Skip to content

Console autocomplete field

Petr Marek edited this page Jan 31, 2019 · 3 revisions

Plucks all distinct values for attribute:

= f.input :superhero, autocomplete: true

You can pass your own collection:

= f.input :superhero, autocomplete: ['Batman', 'Spider-Man']

Works with traco and translated_inputs:

== translated_inputs f, :technique, autocomplete: true