[Rails] Re: Advanced string comparison using active record

2014-11-18 Thread Tal Sh
That wouldn't catch hellXXo... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Re: Advanced string comparison using active record

2014-11-18 Thread Tal Sh
Thanks, I'll try that. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Advanced string comparison using

2014-11-17 Thread Tal Sh
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

[Rails] Re: Advanced string comparison using active record

2014-11-17 Thread Tal Sh
Thanks! But I might have no been clear, that the string I want to find is actually hello. The substrings are strings I want to *ignore* when searching.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk