qq, your choice of couch ruby client (and why)?

I use CouchRest (http://github.com/jchris/couchrest/tree/master) and have been very happy with it. It has both a low-level API:

   response = @db.save({:key => 'value', 'another key' => 'another value'})
        doc = @db.get(response['id'])

and an ActiveRecord like model class:

   class Course < CouchRest::Model
      key_accessor :title
      cast :questions, :as => ['Question']
      cast :professor, :as => 'Person'
      view_by :title
      view_by :dept, :ducktype => true
   end

Paul Gross
http://www.pgrs.net

Reply via email to