For Mongoid I use ‘any_of’. This should work:
Member.any_of({:name => x, :age => 42})
Also here’s a link to some other queries you can use with mongoid. I don’t see these in their main doc page:
0
solved How to or in a ruby on rails Mongodb query? [closed]