[Catalyst] Re: proper flow control with $c->foward, in search of greater grok

Aristotle Pagaltzis pagaltzis at gmx.de
Sat Feb 6 19:32:10 GMT 2010


* Dennis Daupert <ddaupert at gmail.com> [2010-01-24 18:05]:
> On Mon, Jan 11, 2010 at 4:00 AM, Aristotle Pagaltzis <pagaltzis at gmx.de>wrote:
> > I think you are looking for
> >
> >    my @caps = ( $user_id, $blog_id );
> >    $c->go( '/user/blog/entry/list', \@caps );
> >
> > or just
> >
> >    $c->go( '/user/blog/entry/list', [ $user_id, $blog_id ] );
>
> Neither of these formats works for me. I'm getting exactly the
> same behavior as I got previously. I see all the correct body
> parameters being passed, but the $user_id isn't being
> recognized in the first leg of the chain. However, the
> uri_for_action format does work:
>
> $c->response->redirect($c->uri_for_action('/user/blog/entry/list',
> [$user_id, $blog_id]));

Hmm, per my reading of the documentation, the examples I gave
should work. However, I haven’t used `go` in practice yet. (I
have some places that currently do more hacky things that should
be converted to `go`, but I haven’t found the time.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list