I\'m trying to find all documents whose text contains the word test. The below works fine:
@tweets = Tweet.any_of({ :text => /.*test.*/ })
H
This worked for me by doing:
Model.find(:all, :conditions => {:field => /regex/i})