On Fri, Jan 8, 2010 at 6:55 AM, Tomas Doran <bobtf...@bobtfish.net> wrote:

>
>
>>
>> $c->response->redirect($c->uri_for("/user/$user_id/blog/$blog_id/entry/list"));
>>
>
> Eww, don't do that.
>
> You want
> $c->response->redirect($c->uri_for_action('/user/blog/entry/list',
> [$user_id, $blog_id]));
>

I agree that's the right approach, but not sure I see why the "Eww" in this
specific case.  Can you explain?



-- 
Bill Moseley
mose...@hank.org
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to