RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: bbarton
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)`
I had this problem too. Before, my queries looked like:
to fix it: