Showing posts with label ror. Show all posts
Showing posts with label ror. Show all posts

Thursday, 1 March 2012

Another quick tip for those RoR developers using Sphinx / Thinking sphinx as a search backend.

Sanitising your search string with Riddle.escape

e.g. Riddle.escape( :params[query] )