Hi guys,
I'm looking for a way to pick up database records by comparing my string
to the database record's string.
The catch is that I have to "clean up" the database strings (not change
the record, just for the purpose of this query).
The basic query is:
Book.where(“title = ?”,”hello”)
And I have an array of substrings e.g.
["XX","YY","AB"," "] (the last one is space)
So a record where “hellXX o” or “XX YY hellXX o YY ” would be picked
up.
Any ideas? (performance is not important)
Thanks..!
--
Posted via
http://www.ruby-forum.com/.