Rack middleware for serving images from GridFS
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
pkg
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README
Rakefile
serve-gridfs-image-middleware.gemspec

README

This is a Gem packaging of Antek Piechnik's code for serving images from GridFS. Originally found here:
http://antekpiechnik.com/posts/setting-up-carrierwave-file-uploads-using-gridfs-on-rails-3-and-mongoid

Add this in config/application.rb:

  config.middleware.use "ServeGridfsImage"