Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 380c312269c7ba258b077207ab074f055e3c1309 1 parent e07a603
@rkh rkh authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.rdoc
View
4 README.rdoc
@@ -699,6 +699,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:
Please sign in to comment.
Something went wrong with that request. Please try again.