Developmentastic

  1. MongoMapper Looks Promising

    I’ve been intrigued by schema-free document-oriented databases after tinkering with CouchDB, but haven’t found a way to integrate it into my current projects. I’ve heard John Nunemaker sing the praises of MongoDB in the past and today he has officially released his ActiveRecored inspired database adapter MongoMapper.

    It’s got validations, callbacks, a robust find API, support for easily embedding models, and much more. The code looks almost too good to be true.

    class Person
      include MongoMapper::Document
    
      key :first_name, String
      key :last_name, String
      key :age, Integer
      key :born_at, Time
      key :active, Boolean
      key :fav_colors, Array
    end
    

    I hope this project becomes a huge success in the Rails community.