<p>I've built "HTML trace" plugins a couple of times. <br>
At least in rails 2.2 there was a particular method for partial rendering<br>
Could easily be super ed </p>
<p>But it was too hacky<br>
Perhaps with 3 and the fixed api you can build a robust solution </p>
<p><blockquote type="cite">On 21 Jan 2010 23:01, "Tom Stuart" <<a href="mailto:tom@experthuman.com">tom@experthuman.com</a>> wrote:<br><br><p><font color="#500050">On 21 Jan 2010, at 14:25, Jocke Selin <<a href="mailto:jocke@selincite.com">jocke@selincite.com</a>> wrote:
> point at a file in the app/view...</font></p>You can't do a good job of this in general, since the argument to #render can be an arbitrary Ruby expression (e.g. an ActiveRecord instance) rather than just the static filename of a partial, so you won't know what partial it's rendering without actually executing the template (and the application it lives in).<br>

<br>
So maybe someone out there has written a tool that greps templates for "render :partial => '.*'" and "render '.*'" and builds a dependency tree from that, but if that technique alone is sophisticated enough to draw the graph you're looking for then you're luckier than me.<br>

<br>
Cheers,<br>
<font color="#888888">-Tom<br>
</font><p><font color="#500050">_______________________________________________
Chat mailing list
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a>
<a href="http://lists.l.">http://lists.l.</a>..</font></p></blockquote></p>