In my show-page.dryml for a model called List I put a table. I
populate the table with a collection of ListItems . The ListItem is a
has_many_through model connecting Lists with Docs, so what I see in
the table is the set of docs that are ListItems in this list.

I want to see the doc object in the first column, and then the title
attribute of the doc in the second column, and the notes in the third
column. So my fields="doc, doc.title, notes". I see how hobo generates
the '-view' and '-heading' params from the field names for the 'doc'
and 'notes' fields, so I can pass <doc-view:> and <doc-heading:> and
<notes-view:> and <notes-heading:> params to customize those columns.

I don't understand what the names of the autogenerated params for the
'doc.title' field would be. If they are supposed to be <doc-title-
view:> and <doc-title-heading:>, those don't work for me. Am I
(probably) doing it wrong?

      <table:list-items fields="doc, doc.title, notes">
        <doc-view:>
          <a><%= this.docid %></a>
        </doc-view:>
        <doc-title-view:>
          This doesn't work.
        </doc-title-view:>
        <empty-message:>No documents</empty-message:>
      </table:list-items>

Thanks,
Andy
--~--~---------~--~----~------------~-------~--~----~
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