On Thu, Mar 22, 2012 at 12:50 PM, Jay Caines-Gooby <span dir="ltr"><<a href="mailto:jay@gooby.org">jay@gooby.org</a>></span> wrote: <br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I also like the helper_method style<br>
<a href="https://gist.github.com/2007669#file_helper_method_controller.rb" target="_blank">https://gist.github.com/2007669#file_helper_method_controller.rb</a></blockquote><div><br></div><div>I've been using this style quite a bit lately.</div>
<div><br></div><div>I like the fact it gives you some kind of explicit interface for your views, rather than just relying on instance variable copying.</div><div><br></div><div>It also has some benefits with partials - as you can override the helper method by passing a local. Which you can't if the partial is relying on an instance variable.</div>
<div><br></div><div>Steve</div></div>-- <br>/tooky<br>