Permalink
Browse files

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

  • Loading branch information...
1 parent cf90191 commit 67d4cc954b15cb206f5affeefdbe65c18e2ab5ca @rkh rkh committed Feb 17, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.rdoc
View
@@ -610,6 +610,10 @@ and routes are accessible by after filters:
puts response.status
end
+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 67d4cc9

Please sign in to comment.