Dragonfly::CouchDataStore

Couch data store for use with the Dragonfly gem.

Gemfile

gem 'dragonfly-couch_data_store'

Usage

In your dragonfly config block (with default options):

Dragonfly.app.configure do
  # ...

  datastore :couch

  # ...
end

Or with options:

datastore :couch, username: 'potatoman', password: 'spudulike'

Available options

:host              # default 'localhost'
:port              # default 5984
:database          # default 'dragonfly'
:username          # not needed in 'admin party' mode
:password          # not needed in 'admin party' mode

Serving directly from Couch

Dragonfly.app.remote_url_for('some/uid')

or

my_model.attachment.remote_url