Skip to content
It integrates Devise with CouchDB
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

CouchRest Model ORM for Devise

It's just a ORM for integrate Devise and CouchDB.


Apache CouchDB is a document-oriented database that can be queried and indexed in a MapReduce fashion using JavaScript.

CouchRest Model

CouchRest Models adds additional functionality to the standard CouchRest Document class such as setting properties, callbacks, typecasting, and validations.


Devise is a flexible authentication solution for Rails based on Warden. Devise supports ActiveRecord (default) and Mongoid. To choose other ORM, you just need to require it in the initializer file.


  1. Create a Rails Application
  2. Configure Devise
  3. Put this file into the lib directory in your rails application
  4. Change the require path in devise.rb initializer, something like this: require "#{Rails.root}/lib/orm/couchrestmodel"

Now your application is ready to use Devise with CouchDB =)

Devise will use this ORM to create the properties into the documents and views for the autheticable models (including authentication keys)


Create Tests

Maybe convert this ORM to a plugin

Make some refactoring


Special thanks to:

Tapajós @tapajos

Sylvestre Mergulhão @smergulhao

Something went wrong with that request. Please try again.