The primary child is special and receives special attention in the
dryml-section.
I had similar needs as yourself and ended up adding some dryml code in the
show-page for the model. In my case the model page had comments as a
secondary model, listing comments in the aside panel. The secondary
collections get their own collections that you can modify. BTW: In the
sample below I also use ajax to make the comments appear without having to
refresh the page.
<show-page title="Cases">
<comments-collection-section: replace>
<section if="&can_create?(@case.comments)">
<h3>
<ht key="comments.collection.heading.other" >
Comments
</ht>
</h3>
<form with="&@comment || new_for_current_user(@case.comments)"
owner="case" update="comments" without-cancel reset-form refocus-form>
<field-list: skip="case, owner">
<body-label: replace></body-label:>
</field-list:>
<submit: label="#{ht 'comments.actions.add', :default=>['Add
Comment'] }"/>
</form>
</section>
<div part="comments">
<collection:comments.reverse />
</div>
</comments-collection-section>
</show-page>
The above was for a Rails-2.3/Hobo-1.0 app. Don't know how it works in
Rails-3/Hobo-1.3.
Good luck,
Ronny
--
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.