Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 55018 invoked from network); 31 Dec 2008 19:18:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Dec 2008 19:18:49 -0000 Received: (qmail 56754 invoked by uid 500); 31 Dec 2008 19:18:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 56711 invoked by uid 500); 31 Dec 2008 19:18:47 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 56691 invoked by uid 99); 31 Dec 2008 19:18:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2008 11:18:47 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of theflinnster@gmail.com designates 64.233.170.188 as permitted sender) Received: from [64.233.170.188] (HELO rn-out-0910.google.com) (64.233.170.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2008 19:18:38 +0000 Received: by rn-out-0910.google.com with SMTP id k50so9050648rnd.3 for ; Wed, 31 Dec 2008 11:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=jJgnVts/zbXUYnQlaPKUR/c+MatgLy5gQ1DZKbFfa0c=; b=E9JpsmbHNnobja/unEcrMcYoo1r4NZOFtVq0VCCdslFYS+Mus6f4oPQNSm39/N5x1W yTQZE66whwn30T1/8DwoiJWWJwcamCz1P7/YQP/MQtYBR3Rs8tum8pTPMZ6gaw44Dv0M 5uIAMQrAZLmQk3x9ETtDKuBBbrJ0AkLcaAZ1o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=ckcJzuUfpoL5hLMHPhU9d+zWXDfTBj9xjg05YzU2U6qTWYFfS+eGz/rDjJFmS76UXe ZpFzIIFdHq8J3XL7PmTS4uikegqIKknUNWmsqDeGZp/0FS0BHjz+bhAHhqYW15NON8US GW53afRDoly6CvWSunTH39ipuxD0E/FPeBNYw= Received: by 10.150.198.14 with SMTP id v14mr26050018ybf.165.1230751095857; Wed, 31 Dec 2008 11:18:15 -0800 (PST) Received: from ?192.168.1.6? (c-71-235-225-250.hsd1.ct.comcast.net [71.235.225.250]) by mx.google.com with ESMTPS id i49sm28665556rne.8.2008.12.31.11.18.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 31 Dec 2008 11:18:14 -0800 (PST) Message-Id: <41AB4FCD-40FB-4A86-B21E-0A289BE3A7E0@gmail.com> From: Flinn Mueller To: user@couchdb.apache.org In-Reply-To: <495BB105.9080705@gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-4--959178176 Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: ruby client Date: Wed, 31 Dec 2008 14:18:12 -0500 References: <85FD3ADD-1381-4451-9949-1AF595C90153@gmail.com> <495BB105.9080705@gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-4--959178176 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit did you look at datamapper? I'm somewhat interested in datamapper but I'm leery of being tied to a sql orm. On Dec 31, 2008, at 12:51 PM, Paul Gross wrote: > >> 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 > --Apple-Mail-4--959178176--