[Radiant] Page attachments update/bugfix

Sean Cribbs seancribbs at gmail.com
Tue Jul 31 22:56:46 CDT 2007


Everyone,

I have fixed the problem with the <r:attachment:each> tag that you were 
all experiencing.  One would think that having written at least a dozen 
iterators for various extensions that I would remember this small 
concept that I missed.  My apologies.  You may have seen a "#" in the 
output, but that was just the result of Ruby turning an Array full of 
attachments into a string, i.e. calling .to_s on each one in turn.  This 
will produce something like the following:

#<PageAttachment:0x2855320>#<PageAttachment:0x28552d0>

Hence the quasi-random # in the output.  Instead, I needed to push the 
output of each iteration into a string. *headdesk*

Please update your copy of page_attachments if you need this functionality.

Sean



More information about the Radiant mailing list