You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Mark Porter <po...@yahoo.com> on 2010/06/10 08:13:08 UTC

Couch and Rails

Hi folks!

I'm looking for a recommendation for ruby gem that will enable me to use couchdb from rails. I'd like to have couch documents be modeled by ActiveRecord. 

Thanks in advance.

Mark





Re: Couch and Rails

Posted by cdr53x <cd...@free.fr>.
Hi,

Couch_potato is a nice gem. It provides a nice document oriented api and 
relies on couchrest.

It also provides some validation and callbacks that allow you to use 
those features just like in activerecord and other ORMs.

You can add some validations , callbacks by using SimplyStored/Couch ( 
on github) wich is build on top ov Couch_potato and couchrest.

The simply_stored also adds some basic relations support (belongs_to, 
has_many ... ) but I personally don't find this feature really 
interesting and well implemented.

I think that couch_potato is your best way into joining rails and couch.







Re: Couch and Rails

Posted by Julian Doherty <ju...@gmail.com>.
I'm using couchrest gem. Works ok for the most part.

There's also the couchrest-rails gem that adds some niceness around managing
databases and views as part of your rails project config.

Doesn't hook into active record, but is similar enough that you can do most
of the same things.

On 10 June 2010 16:24, Alexander Uvarov <al...@gmail.com> wrote:

>
> On 10.06.2010, at 12:13, Mark Porter wrote:
>
> > Hi folks!
> >
> > I'm looking for a recommendation for ruby gem that will enable me to use
> couchdb from rails.
>
> Couchrest. Nice throw, but on the wane [1]
>
> There is also couch_potato on github [2]
>
> For my pet project I am using my own fork of couchrest with validations and
> callbacks from ActiveModel [3]
>
> > I'd like to have couch documents be modeled by ActiveRecord.
>
> This is nonsense, because couchdb is just another universe.
>
> >
> > Thanks in advance.
> >
> > Mark
> >
>
> [1] http://github.com/couchrest/couchrest
> [2] http://github.com/langalex/couch_potato
> [3] http://github.com/wildchild/couchrest/tree/active_model
>
> Cheers.

Re: Couch and Rails

Posted by Alexander Uvarov <al...@gmail.com>.
On 10.06.2010, at 12:13, Mark Porter wrote:

> Hi folks!
> 
> I'm looking for a recommendation for ruby gem that will enable me to use couchdb from rails.

Couchrest. Nice throw, but on the wane [1]

There is also couch_potato on github [2]

For my pet project I am using my own fork of couchrest with validations and callbacks from ActiveModel [3]

> I'd like to have couch documents be modeled by ActiveRecord. 

This is nonsense, because couchdb is just another universe.

> 
> Thanks in advance.
> 
> Mark
> 

[1] http://github.com/couchrest/couchrest
[2] http://github.com/langalex/couch_potato
[3] http://github.com/wildchild/couchrest/tree/active_model

Cheers.