I've just started using the unbelievably easy and cool auto-complete feature. Does anyone know if you can make it search only from the start of the string (or from the beginning of each word)? By default it seems to do a complete search of the strings - typing MI returns both "Mike Jones" and "Mary Smith". I have to believe this will be much slower as the number of recrords increases, but even if it's not, I can't imagine anyone searching for Mary Smith by entering MI. For searches of this type it would increase the noise that the user needs to sift through with no apparent benefit. Is there a simple work around/mod for this? thanks.
on 2006-04-27 16:13
on 2006-04-27 16:55
Hello ~ You can write your own action that responds to the autocomplete, specifying the find conditions. ~ Ben On 4/27/06, Larry White <firstname.lastname@example.org> wrote: > Smith by entering MI. For searches of this type it would increase the noise > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > -- Ben Reubenstein http://www.benr75.com
on 2006-04-27 17:33
On Thu, 2006-04-27 at 10:13 -0400, Larry White wrote: > Mary Smith by entering MI. For searches of this type it would > increase the noise that the user needs to sift through with no > apparent benefit. > > Is there a simple work around/mod for this? ---- only if you create your own method as opposed to using the built-in method of auto_complete Craig