From: David Trasbo Date: 2008-10-16T20:54:59+09:00 Subject: Re: A Ruby block question Stefano Crocco wrote: >> But how? > > I don't know Rails and Builder::XmlMarkup, so I can be completely wrong. > From > a quick look at Builder::XmlMarkup api, I'd say that, if the block > returns the > string you want to insert in the p element, you only have to insert it > in m > like you did for the texts: > > m << yield f Yes, that was also my first idea, but that is giving me this syntax error: syntax error, unexpected tIDENTIFIER, expecting kEND -- Posted via http://www.ruby-forum.com/.