Reputation: 8172
Is there a way (a gem) to correct spelling mistakes and give similar results when using rails where or find functions in a model?
Upvotes: 2
Views: 939
Reputation: 51707
You're probably going to need a more advanced searching utility than what your database provides out of the box. I would recommend looking into Apache's Solr project, and the Sunspot gem. I know this can be configured to provide suggestions if a search has a typo.
Upvotes: 1