<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Looks interesting. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Might have to give that a try at some point.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On 11 Sep 2007, at 17:23, Jason Lee wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">the resources_controller plugin (AKA the future of rails) makes it really easy write polymorphic views and polymorphic controllers. <BR><BR>I hear that resources_contoller ( <A href="http://blog.ardes.com/articles/2007/09/05/resources-controller-update"> http://blog.ardes.com/articles/2007/09/05/resources-controller-update</A> )  might be a topic at the next monthly LRUG.<BR><BR>For sharing partials, simply_helpful/rails edge gives you<BR><BR>render :partial => @member  # e.g. where @member = @post<BR>and<BR>render :parital => @collection # e.g. where @collection = @posts<BR>which will automatically locate and use the correct partial (e.g. app/views/posts/_post.erb<BR><BR>Jason.<BR><BR> <DIV><SPAN class="gmail_quote">On 9/11/07, <B class="gmail_sendername">Anthony Green</B> <<A href="mailto:Anthony.Green@bbc.co.uk">Anthony.Green@bbc.co.uk</A>> wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <BR><BR>Does anyone have any techniques for sharing view code generators<BR>(partials, helpers, yielding to content_for) across actions in different<BR>controllers.<BR><BR>Iım finding most techniques blogged about only deal with situations where <BR>there is more commonality between view/actions within a controller than<BR>view/actions (with the same name) across controllers.<BR><BR><BR>--<BR>Anthony Green<BR>Client Side Developer - Programme Information Tool<BR> Audio & Music Interactive<BR>BBC Future Media & Technology<BR><BR><BR><BR><A href="http://www.bbc.co.uk/">http://www.bbc.co.uk/</A><BR>This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. <BR>If you have received it in error, please delete it from your system.<BR>Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.<BR>Please note that the BBC monitors e-mails sent or received. <BR>Further communication will signify your consent to this.<BR><BR>_______________________________________________<BR>Chat mailing list<BR><A href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</A><BR><A href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org"> http://lists.lrug.org/listinfo.cgi/chat-lrug.org</A><BR></BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Chat mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>