From: Sebastian Riedel Date: Fri, 15 Apr 2005 18:33:02 +0000 (+0000) Subject: Fixed examples in Catalyst X-Git-Tag: 5.7099_04~1518 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=064834ea749fe2fe0862dd6f8ff601d980118449 Fixed examples in Catalyst --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index c3acedb..5bc4546 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -47,10 +47,10 @@ Catalyst - The Elegant MVC Web Application Framework sub index : Path('/index.html') { my ( $self, $c ) = @_; $c->res->output('Hello'); - $c->forward('_foo'); + $c->forward('foo'); } - sub product : Regex('/^product[_]*(\d*).html$/') { + sub product : Regex('^product[_]*(\d*).html$') { my ( $self, $c ) = @_; $c->stash->{template} = 'product.tt'; $c->stash->{product} = $c->req->snippets->[0];