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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
a
single tick and "\" to escape those, but active record still bombs (same
queries via psql work).

Suggestions?
-Tate
This topic is locked and can not be replied to.