[Catalyst-dev] Developing action_uri() for Catalyst 5.80
Matt S Trout
dbix-class at trout.me.uk
Tue Jun 10 16:34:56 BST 2008
On Mon, Jun 09, 2008 at 03:06:21PM -0400, Jason Gottshall wrote:
> On Friday, June 06, 2008 5:19 PM, Ash Berlin <ash_cpan at firemirror.com>
> wrote:
>
> > Oh and make sure that if you pass an invalid path, number
> > of captures or args that you die with an error rather than just
> > blowing up. Returning undef is more hassle than its worth IMO.
>
> You're referring to the fact that uri_for() returns undef in these
> situations? So action_uri() should include a re-implementation of the
> underlying logic of uri_for() rather than delegating to it. Am I
> interpreting that correctly?
action_uri should be calling the dispatcher's uri_for_action method
directly, I think, and throw an exception on undef.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the Catalyst-dev
mailing list