<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am trying to sort out some interdependent chains and I'm having trouble figuring out why the urls I'm trying to build aren't working out.<div><br></div><div>I have a site where the primary objects of interest are flash-based tutorials. &nbsp;Each tutorial can have comments, and each comment can have replies. &nbsp;I'm using jQuery to manipulate comments in a REST fashion, and I'm aiming for a url map like this:</div><div><br></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;">/tutorials &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # GET a list of tutorials, or POST a new tutorial</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;">/tutorials/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# GET/POST/DELETE a specific tutorial</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;">/tutorials/*/comments &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# GET the comments for a tutorial, or POST a new comment</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;">/tutorials/*/comments/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# GET/POST/DELETE a specific comment</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;">/tutorials/*/comments/*/replies &nbsp; &nbsp;# GET the replies for a comment, or POST a new reply</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;">/tutorials/*/comments/*/replies/* &nbsp;# GET/POST/DELETE a specific reply</span></font></div><div><br></div><div>But the best I've been able to come up with is this:</div><div><br></div><div>&nbsp;<font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;">/tutorials</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;">^tutorials/(\d+)$</span></font></div><div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;">/tutorial/*/comments</span></font></div><div><span class="Apple-style-span" style="font-family: Monaco; font-size: 12px; ">/tutorial/*/comment/*/replies</span></div><div><span class="Apple-style-span" style="font-family: Monaco; font-size: 12px; ">/tutorial/*/comment/*/reply/*</span></div><div><font class="Apple-style-span" face="Monaco"><br></font></div><div><font class="Apple-style-span" face="Monaco">missing: /tutorial/*/comment (what would I call it? /tutorial/*/cmt ?)</font></div><div><font class="Apple-style-span" face="'Lucida Sans'" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div>Essentially I'm hitting an issue with is due to the (seeming?) impossibility of matching a chained set of actions at multiple url depths. Is it possible to build the url structure I'm looking for above using chained actions?</div><div><br></div><div>thanks,</div><div>Stephen</div></div></body></html>