I have a problem with tagged_with function.
When I add % for like search, the results is blank.
For example:
Model.tagged_with("%test%", any: true) is trasformed into WHERE ("tags"."name" LIKE '!%test!%' ESCAPE '!') and the query not found anything :(
If I remove ! from the query and execute it, I found all rows.
Can I remove the escape character?
I have a problem with tagged_with function. When I add
%
for like search, the results is blank. For example:Model.tagged_with("%test%", any: true)
is trasformed intoWHERE ("tags"."name" LIKE '!%test!%' ESCAPE '!')
and the query not found anything :( If I remove!
from the query and execute it, I found all rows. Can I remove the escape character?Thanks!!!