crowdint / rails3-jquery-autocomplete

An easy and unobtrusive way to use jQuery's autocomplete with Rails 3

Home Page:http://rubygems.org/gems/rails3-jquery-autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

brenoman opened this issue · comments

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?