Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 98508 invoked from network); 10 Feb 2009 08:22:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2009 08:22:35 -0000 Received: (qmail 41507 invoked by uid 500); 10 Feb 2009 08:21:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41450 invoked by uid 500); 10 Feb 2009 08:21:13 -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 41433 invoked by uid 99); 10 Feb 2009 08:21:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 00:21:13 -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 metalelf0@gmail.com designates 72.14.220.158 as permitted sender) Received: from [72.14.220.158] (HELO fg-out-1718.google.com) (72.14.220.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 08:21:04 +0000 Received: by fg-out-1718.google.com with SMTP id 19so1251355fgg.3 for ; Tue, 10 Feb 2009 00:20:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=eeQWwD4WjriLoCakolblt9V5n8/f/n1ipwpJ+Xj330M=; b=IGkWMGznlSkHhgoniPz5K6i/rn8R/fTVygsNJ+pIzrUyoDn0s742bQaFZOqgTpvdTz JENeLCmW5SktjZFHDyL8KmT6OvGmECZlo7xxfOEw7yM7PiP6oWnPE4+Arrj9p2NKM+7C 7sBh0PUIwlwCjQ3BNjPc6NibchJoIKZygpayc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=q8hxrXauPWRCLDNnbw9nnxtOTNSc6mhzYwl8MJbie/IxGZMg5LErZY6WeQSzRsbpxv eEH8Sjvx0gPtv21yhcxp/hhNhun+8nl4LJr0gPoDHxUV75cPp5+NsZhvySpsNFfSSF1N D6Yj4oGWm73NQLbFbiLTdzw/LefVYfq1fxlDQ= MIME-Version: 1.0 Sender: metalelf0@gmail.com Received: by 10.86.60.14 with SMTP id i14mr323523fga.21.1234254041515; Tue, 10 Feb 2009 00:20:41 -0800 (PST) In-Reply-To: <78c6a6cc0902090238k17d384afk8b8c4462521f37a8@mail.gmail.com> References: <78c6a6cc0902081821v2e2b8580o75aded862f722d04@mail.gmail.com> <78c6a6cc0902090238k17d384afk8b8c4462521f37a8@mail.gmail.com> Date: Tue, 10 Feb 2009 09:20:41 +0100 X-Google-Sender-Auth: 124abbabd7be5c27 Message-ID: <7d8fb2e90902100020r19bd6644i819766bfa615f351@mail.gmail.com> Subject: Re: Stuffing: a Ruby on Rails plugin to add CouchDB to existing ActiveRecord models From: Andrea Schiavini To: user@couchdb.apache.org Cc: couchdb-user@incubator.apache.org Content-Type: multipart/alternative; boundary=000e0cd34146b508cd04628c2954 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd34146b508cd04628c2954 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Paul, does this handle the problem of conflicts in CouchDB - which may result in an inconsistency between the MySQL database and its CouchDB "mirror"? Congratulations for your work ;) Andrea Schiavini 2009/2/9 Paul Campbell > Chris, > > Totally. My hope is that anyone who's not had the time to fully > investigate CouchDB will be able to just stick this in an ActiveRecord > and have access to their CouchDB document as an accessor on an > ActiveRecord model. Much less to get the head around than starting > from scratch. > > The other neat thing about this is that it *just works* with > ActiveRecord validations, at least with the first layer of hash keys. > So the barrier to entry is pretty much install the plugin and call the > method. > > Paul > > Paul Campbell > paul@rushedsunlight.com > - - - - - - - - - - - - - - - - - - - > +353 87 914 8162 > Follow me on Twitter: http://www.twitter.com/paulca > > > > On Mon, Feb 9, 2009 at 2:47 AM, Chris Anderson wrote: > > On Sun, Feb 8, 2009 at 6:21 PM, Paul Campbell > wrote: > >> Hi all, > >> > >> I've been very quiet around these parts, but I've noticed that there > >> are plenty of users on here that use Ruby/Rails. I've been working on > >> some CMS stuff backed with CouchDB and decided to do some abstracting > >> so that I could get my blog up and running off CouchDB. I thought you > >> might be interested in this: > >> > >> http://www.pabcas.com/feeling/stuffing-couchdb-into-rails > >> > >> Basically, it's a plugin that lets you use CouchDB with existing (or > >> new) ActiveRecord SQL models. You basically don't ever have to leave > >> ActiveRecord or SQL, but you get a bonus attribute (your 'stuffing') > >> that is a hash that persists to CouchDB. > >> > > > > This is really cool. Back when we'd heard of Couch, but weren't yet > > using it, we had a Rails plugin that serialized schemaless hashes to > > JSON strings in Postgres. What you have sounds even better, what with > > the actual Couch and all. > > > > Chris > > > > -- > > Chris Anderson > > http://jchris.mfdz.com > > > --000e0cd34146b508cd04628c2954--