extra_docs/Rails2.md in dragonfly-0.9.0 vs extra_docs/Rails2.md in dragonfly-0.9.1
- old
+ new
@@ -23,14 +23,14 @@
app.define_macro(ActiveRecord::Base, :image_accessor)
environment.rb:
- config.middleware.insert_after 'Rack::Lock', 'Dragonfly::Middleware', :images, '/media'
+ config.middleware.insert 0, 'Dragonfly::Middleware', :images, '/media'
config.middleware.insert_before 'Dragonfly::Middleware', 'Rack::Cache', {
:verbose => true,
- :metastore => "file:#{Rails.root}/tmp/dragonfly/cache/meta",
- :entitystore => "file:#{Rails.root}/tmp/dragonfly/cache/body"
+ :metastore => URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/meta"),
+ :entitystore => URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/body")
}
Gems
----
environment.rb