Permalink
Browse files

Note why you might choose endpoint or middleware config

  • Loading branch information...
1 parent 2841fb0 commit a6b76c5e2a185dfe551a50afa73e6016985984c0 @ches ches committed Apr 18, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 README.rdoc
View
@@ -80,11 +80,15 @@ returns a "static" file or a 404.
=== Usage with Rails 3
-To use in Rails 3, you can insert into the middleware stack or mount the app
-directly in your routes (recommended). In config/routes.rb:
+To use in Rails 3, you can insert into the middleware stack as above, or mount
+the app directly in your routes (recommended). In <tt>config/routes.rb</tt>:
mount Rack::GridFS::Endpoint, :at => "gridfs"
+This allows for much more straightforward and sensible configuration, if you do
+not require other middleware in front of GridFS (Rack-based authorization, for
+instance).
+
=== Path (filename) Lookup
The <tt>:lookup => :path</tt> option causes files to be looked up from the GridFS

0 comments on commit a6b76c5

Please sign in to comment.