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 18:13
on 2006-04-27 18:55
Hello ~ You can write your own action that responds to the autocomplete, specifying the find conditions. ~ Ben On 4/27/06, Larry W. <email@example.com> wrote: > Smith by entering MI. For searches of this type it would increase the noise > _______________________________________________ > Rails mailing list > firstname.lastname@example.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > -- Ben R. http://www.benr75.com
on 2006-04-27 19:33
On Thu, 2006-04-27 at 10:13 -0400, Larry W. 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