The MongoID docs seem to be pretty clear that I should be able to run this and have it work:
Band.find_by(name: "Photek")
but at least with MongoID 2.4.11 this gives me a NoMethodError
.
This, on the other hand, works:
Band.find(name: "Photek")
It's easy enough to change find_by
to find
, but I'm confused what's going on. Is this a case where my gem version is behind the docs, or what?