Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
Possible bug here?
 

Index | Next | Previous | View Flat


kdiment at uow

May 31, 2009, 5:08 AM


Views: 594
Permalink
Possible bug here?

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 ...

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Subject User Time
Possible bug here? kdiment at uow May 31, 2009, 5:08 AM
    Re: Possible bug here? mdietrich at cpan May 31, 2009, 8:17 AM
        Re: Possible bug here? diment at gmail May 31, 2009, 2:34 PM
            Re: Possible bug here? jshirley at gmail May 31, 2009, 4:25 PM
    Re: Possible bug here? diment at gmail May 31, 2009, 5:43 PM
    Re: Possible bug here? anexiole at gmail Jun 1, 2009, 3:39 AM
    Re: Possible bug here? bobtfish at bobtfish Jun 1, 2009, 5:00 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.