From: Daniel N Date: 2006-09-14T12:50:10+09:00 Subject: Re: eRB <%= ------=_Part_90656_22982166.1158205768701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/14/06, Jacob Fugal wrote: > > On 9/13/06, Ezra Zygmuntowicz wrote: > > Actually that doesn't work in a helper. You will get this > error:" > > > > undefined local variable or method `_erbout' for #<#: > > 0x358b7a0> > > > > its because when you call _erbout it takes a second arg that defaults > > to binding. The binding and _erbout are not available within a > > helper method. > > Good point, thanks for the pointer. So looks like you're stuck with > the uglies if you really want to do it. Can you not just build up a string in the helper method and then return that? def echo(value) "Something with #{value}" end ------=_Part_90656_22982166.1158205768701--