crowdint / rails3-jquery-autocomplete

An easy and unobtrusive way to use jQuery's autocomplete with Rails 3
http://rubygems.org/gems/rails3-jquery-autocomplete
MIT License
917 stars 367 forks source link

How can I add an ID - Field to the search? #290

Open brenoman opened 7 years ago

brenoman commented 7 years ago

Example, There's a model with id and name When the autocomplete makes the search, it looks for the name and displays the name. I would like to search for ID or Name and I would like for it to return me in this format: "ID - Name", instead of just "Name" How can I accomplish that without changing the gem?