[Catalyst-commits] r12137 -
trunk/examples/CatalystAdvent/root/2009/pen
alexn_org at dev.catalyst.perl.org
alexn_org at dev.catalyst.perl.org
Tue Dec 1 21:39:29 GMT 2009
Author: alexn_org
Date: 2009-12-01 21:39:29 +0000 (Tue, 01 Dec 2009)
New Revision: 12137
Modified:
trunk/examples/CatalystAdvent/root/2009/pen/formhandler.pod
Log:
commented ->flash line
Modified: trunk/examples/CatalystAdvent/root/2009/pen/formhandler.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2009/pen/formhandler.pod 2009-12-01 21:39:04 UTC (rev 12136)
+++ trunk/examples/CatalystAdvent/root/2009/pen/formhandler.pod 2009-12-01 21:39:29 UTC (rev 12137)
@@ -208,7 +208,7 @@
$c->error("ID isn't valid!") unless $id =~ /^\d+$/;
$c->stash->{item} = $c->stash->{articles}->find($id)
- or $c->error("ID $id is nonexistent");
+ or $c->forward_to_action('Article', 'not_found');
}
sub edit : Chained('item') {
@@ -236,7 +236,7 @@
# if it returns False, then a validation error happened
return unless $form->process( params => $c->req->params );
- $c->flash->{info_msg} = "Article saved!";
+ # $c->flash->{info_msg} = "Article saved!";
$c->redirect_to_action('Article', 'edit', [$item->article_id]);
}
@@ -346,8 +346,6 @@
=head2 Further Reading
-=head3 On HTML::FormHandler
-
See L<HTML::FormHandler::Manual::Intro> for a more complex example
with custom validators and notes about template rendering.
@@ -355,8 +353,6 @@
L<HTML::FormHandler::Manual::Tutorial> and the others documents in the
L<HTML::FormHandler::Manual>.
-=head3 On Catalyst
-
=head1 AUTHOR
Alexandru Nedelcu <alex at sinapticode.com>
More information about the Catalyst-commits
mailing list