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>