From: Jacob Fugal Date: 2006-09-14T12:37:35+09:00 Subject: Re: eRB <%= 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. Another option (maybe?) would be to just switch context briefly: <% # doing stuff here # but now I want to print something %><%= value %><% # continue doing stuff... %> Jacob Fugal