req -> res, ticket #22
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Manual / Cookbook.pod
index 7d7c103..2c1b139 100644 (file)
@@ -266,9 +266,9 @@ with:
     sub add : Local {
         my ($self, $c) = @_;
         if ($c->roles(qw/admin/)) {
-            $c->req->output("Your account has the role 'admin.'");
+            $c->res->output("Your account has the role 'admin.'");
         } else {
-            $c->req->output("You're not allowed to be here.");
+            $c->res->output("You're not allowed to be here.");
         }
     }