Dragonfly::CouchDataStore
Couch data store for use with the Dragonfly gem.
Gemfile
gem 'dragonfly-couch_data_store'
Usage
Configuration (with default options):
require 'dragonfly/couch_data_store'
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