[Catalyst] Root::default stopped working ...

Daniel McBrearty danielmcbrearty at gmail.com
Mon Apr 24 20:44:25 CEST 2006


... and I can't figure out why.

code:

<snip>
package Engoi::Controller::Root;

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

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


sub default : Private {
    my ( $self, $c ) = @_;
    $c->response->redirect('/public/home');
}

sub auto : Private {

# do stuff

}

1;
</snip>

debug output is this:

[Mon Apr 24 20:35:01 2006] [catalyst] [debug] Loaded Private actions:
.----------------------+----------------------------------------+--------------.
| Private              | Class                                  |
Method       |
+----------------------+----------------------------------------+--------------+
| /end                 | Engoi                                  |
end          |
| /public/menu         | Engoi::Controller::Public              |
menu         |
| /public/default      | Engoi::Controller::Public              |
default      |
| /public/index        | Engoi::Controller::Public              |
index        |
| /public/error        | Engoi::Controller::Public              |
error        |
| /public/home         | Engoi::Controller::Public              |
home         |
| /root/auto           | Engoi::Controller::Root                |
auto         |
| /root/default        | Engoi::Controller::Root                |
default      |
'----------------------+----------------------------------------+--------------'

[Mon Apr 24 20:35:01 2006] [catalyst] [debug] Loaded Path actions:
.--------------------------------------+---------------------------------------.
| Path                                 |
Private                               |
+--------------------------------------+---------------------------------------+
| /public/error                        |
/public/error                         |
| /public/home                         |
/public/home                          |
| /public/index                        |
/public/index                         |
| /public/menu                         |
/public/menu                          |
'--------------------------------------+---------------------------------------'

[Mon Apr 24 20:35:01 2006] [catalyst] [info] engoi powered by Catalyst 5.65
You can connect to your server at http://roomatthetop:3000
[Mon Apr 24 20:39:02 2006] [catalyst] [debug]
**********************************
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] * Request 1 (0.004/s) [29528]
[Mon Apr 24 20:39:02 2006] [catalyst] [debug]
**********************************
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] Found sessionid
"f6998b6311af2d118d013219bf1547970ba506e0" in cookie
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] "GET" request for "" from "
127.0.0.1"
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] Arguments are ""
[Mon Apr 24 20:39:02 2006] [catalyst] [error] No default action defined
[Mon Apr 24 20:39:02 2006] [catalyst] [error] No default action defined
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] Restored session
"f6998b6311af2d118d013219bf1547970ba506e0"
[Mon Apr 24 20:39:03 2006] [catalyst] [info] Request took 0.508799s (1.965
/s)


any ideas? (I bet it's something blindingly silly ... )

thanks

Daniel



--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060424/10287a55/attachment.htm 


More information about the Catalyst mailing list