Browse files

Document accessing response body in after filter. Fixes #168.

  • Loading branch information...
rkh committed Feb 17, 2011
1 parent e07a603 commit 380c312269c7ba258b077207ab074f055e3c1309
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.rdoc
@@ -699,6 +699,10 @@ and routes are accessible by after filters:
puts response.status
+Note: Unless you use the `body` method rather than just returning a String from
+the routes, the body will not yet be available in the after filter, since it is
+generated later on.
Filters optionally taking a pattern, causing them to be evaluated only if the
request path matches that pattern:

0 comments on commit 380c312

Please sign in to comment.