Update default actions in generated root.pm
Marcus Ramberg [Tue, 5 Feb 2008 20:37:11 +0000 (20:37 +0000)]
lib/Catalyst/Helper.pm

index 0e40e3c..a6fb937 100644 (file)
@@ -693,13 +693,20 @@ __PACKAGE__->config->{namespace} = '';
 
 =cut
 
-sub default : Private {
+sub index : Path Args(0) {
     my ( $self, $c ) = @_;
 
     # Hello World
     $c->response->body( $c->welcome_message );
 }
 
+sub default : Path {
+    my ( $self, $c ) = @_;
+    $c->response->body( 'Page not found' );
+    $c->response->status(404);
+    
+}
+
 =head2 end
 
 Attempt to render a view, if needed.