[Catalyst] Trouble with Chained Actions and Redirects?

Wade.Stuart at fallon.com Wade.Stuart at fallon.com
Tue Sep 19 17:11:18 CEST 2006

> Wouldn't even need to. It's just an (untested)
>   sub MyApp::redirect_and_stop {
>       my $c = shift;
>       $c->response->redirect(@_);
>       $c->detach;
>   }
> and a call via $c->redirect_and_stop( $c->uri_for('/foo', $foo) );

Or maybe call it redirect_and_detach so other devs that may eventually need
to read/debug the code can guess what it does without seeing what your
definition of "stop" is =)

always good to use known verbs =)


More information about the Catalyst mailing list