Acts_as_ferret and ajax

I want to do a thing like Google does in the eMail name lookup, where I
can type a few characters and then make ajax call and get back a list


You want to use Ajax Autocomplete.
Check out the raw usage at

In your model, make it acts_as_ferret with the appropriate fields.
In your controller use find_by_contents to get the list of possible
contacts using the search string

I can provide code examples if you want, but this should be enough to
point you in the right direction anyway.


On Jan 9, 1:09 am, Bartee L. [email protected]