Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

bbarton's Profile

GitHub User: bbarton

Comments by

Avatar

I had this problem too. Before, my queries looked like:

`where("to_tsvector('english', title) @@ :q", q: query)`

to fix it:

`where("to_tsvector('english', title) @@ plainto_tsquery(:q)", q: query)`