You want to use Ajax Autocomplete.
Check out the raw usage at http://wiki.script.aculo.us/
Or
http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptMacrosHelper.html#M000579
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.
Luke
On Jan 9, 1:09 am, Bartee Lamar
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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
>
> TIA
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---