[LRUG] Funny gotcha with blocks in partials.
Tim Cowlishaw
tim at timcowlishaw.co.uk
Mon Jun 22 09:13:29 PDT 2009
On 22 Jun 2009, at 17:08, Chris Mear wrote:
>
> Yeah, I've done something like this before, by building up the
> output using the concat method, and using capture to get the
> rendered results of blocks defined in the ERB template. Something
> like this should work:
[snip...]
Aah yep - that looks good! However, am i right in thinking that that
would break if i pass a regular ruby block to it, rather than a block
containing an erb template fragment?
Thanks a lot,
Tim
More information about the Chat
mailing list