From: David Trasbo Date: 2008-10-19T01:39:44+09:00 Subject: Re: A Ruby block question Henrik --- 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 No, actually I haven't. Thank you very much for your suggestion. I'm using that now. (: -- Posted via http://www.ruby-forum.com/.