[Catalyst] PathPart help

Christopher H. Laco claco at chrislaco.com
Fri Nov 16 16:11:36 GMT 2007


Matt S Trout wrote:
> On Thu, Nov 15, 2007 at 11:47:34AM -0800, Les Fletcher wrote:
>> I have question about setting up PathPart's and Chaining.  I am trying =

>> to set something that has the following look:
>>
>> /namespace/ =3D> This lists out a list of objects
>> /namespace/<id> =3D> displays detail information about the object with t=
he =

>> numeric id=3D<id>
>> /namespace/<id>/edit =3D> brings up a form to edit object with numeric i=
d=3D<id>
>> /namespace/create =3D> brings up a form to create a new object
>>
>> When the Chained actions are printed out everything looks fine, but when =

>> I goto "/namespace/create" it matches the "/namespace/<id>" view =

>> action.  Needless to say, there isn't an object with the numeric id of =

>> "create."
> =

> Try upgrading to absolute latest Catalyst, I'm sure somebody patched this.
> =

> If that doesn't help, I'd suggest using
> =

> /namespace/id/<id>/edit

Interesting twist. Reminds me of the RHOX stuff..

users/id/<id>
users/name/<name>

etc. Damnit. Now you have me thinking again. That setup is a great
reason to keep REST and web controllers seperated. :/


-=3DChris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071116/9b8b=
735a/signature.pgp


More information about the Catalyst mailing list