Ok, being stupid today

I have a simple controller named directory.  It has a default method.
So things named

        http://localhost:3000/directory

should go to it.  Now I want to capture

        http://localhost:3000/directory/other/things/...

that is, I want this controller to handle anything past the default
method.  It does this by default.  My question is, how do I get access
to the rest of the path after /directory?  This is what I have ...

sub default : Regex('^(.*)$') {
    my ( $self, $c, $rest ) = @_;
    ...

}

and I want $rest to be /other/things/...

This is not working though.  I tried a Path('/directory') that worked,
as long as I gave it /directory/other.  As soon as I tried
/directory/other/things, it gave me /directory/other.

Hmmm...

Hints?  Clues?  FAQs?  Pointers?

Thanks!


-- 
Joe Landman
landman |at| scalableinformatics |dot| com

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to