Forum: Ruby on Rails active record and tsearch2, works?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tate H. (Guest)
on 2006-04-15 23:35
(Received via mailing list)
I have a search form; I grab the value and use it in a fulltext query:

:conditions => ["idxfti @@ '" + search_string + "'::tsquery and

Characters in search_string like "?", ":", bomb active record.  I tried
single tick and "\" to escape those, but active record still bombs (same
queries via psql work).

This topic is locked and can not be replied to.