Hi all,
I'm just starting out with Hobo. I love the extensions to
ActiveRecord, but I'm struggling with DRYML. I can't even replace a
select-one on a form with a name-one. Here's what I have:
# app/views/taglibs/application.dryml
<extend tag="form" for="Person">
<old-form merge>
<field-list:>
<input:last-name/>
<name-one:city/>
</field-list:>
<submit: label="Enregistrer"/>
</old-form>
</extend>
# app/views/people/new.dryml
<new-page>
<title:>Ajout d'une personne</title:>
<heading:>Ajout d'une personne</heading:>
</new-page>
On my person/new page, I do see the French title + heading, but the
form stays the same, unless I use the <field-list: fields="last_name,
first_name, ..."/> form. But then, I don't get the name-one for my
city (which is part of a belongs_to relationship).
I'm trying to follow the cookbook on
http://cookbook.hobocentral.net/recipes/36-using-a-name-one-one-a.
What am I doing wrong? I read the <form> source code, but I can't
even find a reference to field-list as a parameter.
I tried searching this group too:
http://groups.google.com/group/hobousers/search?group=hobousers&q=replacing+reordering+fields+form&qt_g=Rechercher+dans+ce+groupe
Thanks!
François
--
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.