I need some help. I am doing an auto complete that hast to find result
from
a mysql database of some people if the text written in the text box
matches
the name or last name. It works if i only want to find matches with the
name
or indepently the secon name but not with a or of both.
I have this
I need some help. I am doing an auto complete that hast to find result from
a mysql database of some people if the text written in the text box matches
the name or last name. It works if i only want to find matches with the name
or indepently the secon name but not with a or of both.
@inscritos = Inscrito.find(:all,
:conditions => [“LOWER(nombre) OR LOWER(apellido) LIKE ?”,
I would think that would work if you enclosed your arguments in
parens, e.g.