[Radiant] if_content with inherit

Tim Gossett tim at mrgossett.com
Tue Jul 8 13:11:24 CDT 2008


On Tue, Jul 8, 2008 at 12:16 PM, Jim Gay <jim at saturnflyer.com> wrote:

>
> <r:if_content part="this, that" collect="all"> #this being the default
> <r:if_content part="this, that" collect="any">
> Or
> <r:if_content part="this, that" find="all"> #this being the default
> <r:if_content part="this, that" find="any">
>

When I see "collect," I expect an array to be returned. I think "find" is
the way to go. Even though find(:all) and find_all_by_* return an array, I
think it's a little more clear than "collect."

--
Tim


More information about the Radiant mailing list