From: Henrik Nyh Date: 2008-10-18T17:13:58+09:00 Subject: Re: A Ruby block question On Fri, Oct 17, 2008 at 7:32 PM, David Trasbo wrote: > But, come on! There must be a better solution. This doesn't seem very > idiomatic to me. Nobody got a better idea? I skipped through most of this thread, so this might be off target, but have you looked into using Rails' "capture" helper to get a block of Haml into a string? http://api.rubyonrails.com/classes/ActionView/Helpers/CaptureHelper.html#M001750