We've spent quite some time developing a framework for UI 'widgets', which are ruby classes with associated templates, css and javascript files, that can be instantiated anywhere in the view, across the whole application. I rather like this approach, as it encourages view code that has a sensible OO architecture - UI widgets can be subclassed from each other, and can mixin different interfaces, which saves a lot of repetition of code. We're going to try to package this framework up as a rails plugin sometime - more information should be forthcoming at 
<a href="http://devblog.playlouder.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">devblog.playlouder.com</a> if you're interested at some point.<br><br>Cheers,<br><br>Tim<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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Chat@lists.lrug.org</a><br><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.lrug.org/listinfo.cgi/chat-lrug.org
</a><br></blockquote></div><br>