I move this off list because I&#39;m not sure you want to show<br><br><div class="gmail_quote">On Wed, Sep 30, 2009 at 8:11 PM, Aristotle Pagaltzis <span dir="ltr">&lt;<a href="mailto:pagaltzis@gmx.de">pagaltzis@gmx.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">With this structure, having `auto` etc run before or after auth<br>
or whatever is never an issue. I also do all my auth checks<br>
piecemeal along the chain, thus, without complicated chains of<br>
conditionals in my code, dispatch determines for me how<br>
specifically to perform a complex auth check. And if I need to<br>
extract logic from several actions without affecting the URI<br>
structure I can add a `PathPart(&#39;&#39;) CaptureArgs(0)` action into<br>
the chain and voilà.<br>
<br>
I really enjoy working with this structure. It’s declarative and<br>
very DRY, no hairy logic, clear, simple, explicit. I ♥ Chained.<br></blockquote><div><br>Shifting topics here.   I&#39;m not quiet so in love with the chained because it is sometimes confusing for new programmers and is a bit more challenging to build urls in the templates.   We do used chained actions as I believe you describe, but not everywhere.  Often the more complex auth checks happen at the end of the action chain so it doesn&#39;t alway buy us that much.  But, that may be just the way our URLs work.<br>
<br>That said, I value your comments.  Could you show an example of what you describe  -- maybe one that has more complex auth requirements?<br><br>What I have liked is a combination of using auto() in the root and attributes on the actions.  Every dispatch method runs auto, so it&#39;s a way to ensure that every action is tested.  It&#39;s not a big conditional check as the action attributes link to methods that handle the tests.    Someone can&#39;t throw in a  : Local method any bypass checks.   But, it&#39;s not perfect by any means (there&#39;s always ways to mess up the auth checks).  So,  If you ♥ chained that much I&#39;ll belive you have something great and  I&#39;d love to see more real-world examples.<br>
<br>Thanks,<br><br><br><br></div></div><br clear="all"><br>-- <br>Bill Moseley<br><a href="mailto:moseley@hank.org">moseley@hank.org</a><br>