Hi Nathan,
I was a bit curious about this, so I made a test. This is my example
index.dryml:
<index-page>
<content-body:>
<table-plus fields="this, id, created_at, actions">
<id-view:><view/><avatar/></id-view:>
</table-plus>
</content-body:>
</index-page>
<def tag="avatar">
<%= this_parent.updated_at %>
<img src="http://placehold.it/350x150"/>
</def>
As you can see in the code, inside the "avatar" tag, I'm using
"this_parent" to access the complete record.
In my case, I'm using an external image, but you could easily use
"this_parent.avatar.url".
Warm regards,
Ignacio
El 18-08-2015 a las 17:05, Nathan Peters escribió:
> Hello Ignacio, and thanks for the reply.
>
> I tried your suggestions but no luck. I am still in the same situation:
> wrapping <view:avatar/> with messy-looking code. Which works.
>
> Hobo/Rails makes me feel like an eternal noob sometimes. I'm wondering
> how it is that the <avatar/> tag I defined in application.dryml works
> fine in the user card but doesn't work in my tables. I imagine there is
> some good reason. Some type of context issue?
>
> Thanks again,
> Nathan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.