* Move all autocomplete code to autocomplete.js. * Mark autocompleted fields with `data-autocomplete="<type>"` attributes, instead of hardcoding input field IDs in the javascript.
4 lines
187 B
Plaintext
4 lines
187 B
Plaintext
<%= form_tag(artists_path, :method => :get) do %>
|
|
<%= text_field "search", "name", id: "quick_search_name", placeholder: "Search artists", data: { autocomplete: "artist" } %>
|
|
<% end %>
|