RailsCasts Pro episodes are now free!

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)`