Rails 3 has recently renamed key method to to_key , which consequently rendered MongoMapper unusable. You might see an error that…...