Howtos specific to DataMapper.
CouchDB is a document oriented database that doesn’t impose the constraints of schemas and fixed size fields on your data. It's a natural fit for semi-structured data, and hence, many web apps.
RelaxDB provides a Ruby interface to CouchDB. It offers a familiar idiom for specifying object relationships, and an elegant wrapper for CouchDB queries. The merb_relaxdb plugin offers an easy way to hook Merb and RelaxDB together.
Grab merb_relaxdb from github and install
$ git clone git://github.com/paulcarey/merb_relaxdb.git $ cd merb_relaxdb $ rake install
In your_merb_app/config/dependencies.rb add
dependency "merb_relaxdb"
and in your_merb_app/config/init.rb add
use_orm :relaxdb
CouchRest is another popular Ruby library for CouchDB.
This adapter is successfully used by many.