THpubs
THpubs

Reputation: 8172

Auto correct spelling while searching a Rails Model?

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

Answers (1)

Peter Brown
Peter Brown

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

Related Questions