Skip to content

Console autocomplete field

Petr Marek edited this page Jan 30, 2019 · 3 revisions
= f.input :superhero, as: :autocomplete, collection: ['Batman', 'Spider-Man']

If using traco and translated_inputs, simply add autocomplete: true:

== translated_inputs f, :technique, autocomplete: true