This generates a file in config/initializers/dragonfly.rb. See Configuration for customizations. Handling attachments Supposing we have a Photo model that we wish to add an image attribute to. Dragonfly provides the accessor by adding to the model class Photo < ActiveRecord::Base dragonfly_accessor :image # defines a reader/writer for image # ... end