I was also confused and that's why I added the following small piece of 
documentation in Catalyst.pm:

""
        Note that although the path looks like a URI that dispatches to the
        wanted action, it is not a URI, but an internal path to that action.

        For example, if the action looks like:

         package MyApp::Controller::Users;

         sub lst : Path('the-list') {}

        You can use:

         $c->uri_for_action('/users/lst')

        and it will create the URI /users/the-list.
""

But just as Path::Class can also use dir('a', 'b', 'c') and dir('a/b/c'), 
uri_for_action could use the same syntax options...

Octavian

----- Original Message ----- 
From: "Aristotle Pagaltzis" <[email protected]>
To: <[email protected]>
Sent: Friday, November 12, 2010 7:37 PM
Subject: [Catalyst] Re: Organizing link generators


>* Alexander Hartmaier <[email protected]> [2010-11-12 15:35]:
>> To me company, lot and vin in the url look like arguments, not
>> PathParts.
> 
> That’s not how `uri_for_action` works.
> 
> Regards,
> -- 
> Aristotle Pagaltzis // <http://plasmasturm.org/>
> 
> _______________________________________________
> List: [email protected]
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to