I have the following dryml code:

        <repeat with="&@this.pictures">
                        <view:title/>
                        <view:thumbnail_path/>
                        <image src="&@this.thumbnail_path"/>
                        <br/>
        </repeat>

The @this.pictures call returns a collection Picture objects.


When I try to render it I get the following message:

undefined method `thumbnail_path' for #<PictureInformation:0xb4c7fe0c>

Extracted source (around line #8):

5:      <repeat with="&@this.pictures">
6:                      <view:title/>
7:                      <view:thumbnail_path/>
8:                      <image src="&@this.thumbnail_path"/>
9:                      <br/>
10:     </repeat>



I thought that the repeat would have changed the 'this' context the
the current Picture element.
If it does,what am I doing wrong, it if does not, how do I get the
current Picture from the repeat?

If I remove the <image> tag, the code renders the title and path as I
expect.

I am running on hobo 0.83 with Rails 2.1.1.

Cheers
Geoff

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to