[Catalyst-commits] r12138 -
trunk/examples/CatalystAdvent/root/2009/pen
alexn_org at dev.catalyst.perl.org
alexn_org at dev.catalyst.perl.org
Tue Dec 1 21:43:00 GMT 2009
Author: alexn_org
Date: 2009-12-01 21:42:58 +0000 (Tue, 01 Dec 2009)
New Revision: 12138
Modified:
trunk/examples/CatalystAdvent/root/2009/pen/formhandler.pod
Log:
removed ->error
Modified: trunk/examples/CatalystAdvent/root/2009/pen/formhandler.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2009/pen/formhandler.pod 2009-12-01 21:39:29 UTC (rev 12137)
+++ trunk/examples/CatalystAdvent/root/2009/pen/formhandler.pod 2009-12-01 21:42:58 UTC (rev 12138)
@@ -207,8 +207,12 @@
my ($self, $c, $id) = @_;
$c->error("ID isn't valid!") unless $id =~ /^\d+$/;
- $c->stash->{item} = $c->stash->{articles}->find($id)
- or $c->forward_to_action('Article', 'not_found');
+ $c->stash->{item} = $c->stash->{articles}->find($id);
+ unless ($c->stash->{item}) {
+ # $c->flash->{error_msg} = "Request article is not available!";
+ $c->response->status(404);
+ $c->forward_to_action('Article', 'list');
+ }
}
sub edit : Chained('item') {
@@ -290,8 +294,8 @@
=item *
-The "published date" field expects the format YYYY-MM-DD. You'll be
-wise to add a Javascript calendar.
+The "published date" field expects the format YYYY-MM-DD. You'd be
+wise to enhance this input with a Javascript widget.
=back
More information about the Catalyst-commits
mailing list