made ChildOf docs slightly less "neat" but significantly less wrong
Matt S Trout [Thu, 22 Jun 2006 14:51:15 +0000 (14:51 +0000)]
r10048@cain (orig r4390):  matthewt | 2006-06-17 01:27:16 +0000

lib/Catalyst/Manual/Intro.pod

index 5bdac66..3e6eff3 100644 (file)
@@ -431,7 +431,7 @@ in Controller::Root you can do the following:
         $c->Model('Sections')->find($c->req->captures->[0]);
   }
 
-  sub item_handler :PathPart('item') :ChildOf('/section') :Args(1) {
+  sub item_handler :PathPart('item') :ChildOf('/section_handler') :Args(1) {
       my ( $self, $c ) = @_;
       $c->stash->{'item'} =
         $c->stash->{'section'}->find_related('item',$c->args->[0]);