[Catalyst] Possible bug here?

Kieren Diment kdiment at uow.edu.au
Sun May 31 12:08:52 GMT 2009


Here's the code:

package TestApp::Controller::Root;

use strict;
use warnings;
use parent 'Catalyst::Controller';

__PACKAGE__->config->{namespace} = '';

sub index :Path :Args(0) {
     my ( $self, $c ) = @_;

     # Hello World
     $c->response->body( $c->welcome_message );
}


sub anaction :Path : Args(1) {
	my ($self, $c, $arg) = @_;
	$c->res->body($arg);
}

sub default :Path {
     my ( $self, $c ) = @_;
     $c->response->body( 'Page not found' );
     $c->response->status(404);
}


sub end : ActionClass('RenderView') {}

1;

And here's the output from script/testapp_test /foo:

Page not found


Either this is a bug or there's something very obvious wrong which I'm  
missing ...



More information about the Catalyst mailing list