Ok I figured it out: you use the id attribute to generate a unique id
for a particular part:
- <collection part="&model_id_class"/>
- <form with="&
this.new" owner="list_item"
update="&model_id_class" >
+ <collection part="notes" id="&this_parent"/>
+ <form with="&
this.new" owner="list_item"
update="&this_parent.to_s" >
This creates the following output:
<div class='part-wrapper' id='List Item 1'>
and so on for each List Item in the table, with corresponding forms
with the attribute onsubmit="Hobo.ajaxRequest(this, ['List Item 1'],
{resetForm:true}); return false;" Nice!
A further question: How would I get a nice dasherized id ("list-
item-1") instead of the to_s version?
Thanks,
Andy