Thanks for the advice and help. I am still new to the DRYML / Hobo world so 
I apologize in advance for any newbie-level questions. I tried the 
suggestion above but got an error. I suspect I am missing something fairly 
basic, like passing the @variable around properly but I've tried putting 
"merge" in a bunch of places with no joy. So, in the hope that someone will 
be able to spot my problem, here is my "new" method in the controller:

  def new
  @z = Registration.new
  @x = Person.new
  @y = Person.new
    hobo_new
  end


And here is what I used for the "new.dryml" page definition:

<new-page>
    <form:>
        <field-list: replace>
            <person-editor with="&@x" type="some-attrib-value-1">
            <legend:>a param value for the person-editor tag</legend:>
            </person-editor>

            <person-editor with="&@y" type="some-attrib-value-2">
               <legend:>a different param value for the person-editor 
tag</legend:>
            </person-editor>

            <registration-editor with="&@z" />
        </field-list:>
    </form:>
</new-page>

Here is the "person-editor" tag def from application.dryml:

<def tag="person-editor" attrs="type">
 <div class="#{type}_info" id="#{type}_info" >
 <fieldset>
   <legend param>Person Details</legend>
   <table>
   <labeled-field name="first_name" />
   <labeled-field name="last_name" />
   <labeled-field name="home_phone" />
   <labeled-field name="cell_phone" />
   <labeled-field name="email" />
    <labeled-field name="contact_name" />
   <labeled-field name="contact_phone" />
  </table>
 </fieldset>
 </div>
</def>

And here is the error I am receiving:

DRYML cannot provide the correct form-field name here (this_field = 
"first_name", this = nil)

With a stack trace of:

app/views/taglibs/application.dryml:12:in `block in labeled_field'
app/views/taglibs/application.dryml:6:in `labeled_field'
app/views/taglibs/application.dryml:22:in `block (3 levels) in person_editor'
app/views/taglibs/application.dryml:21:in `block (2 levels) in person_editor'
app/views/taglibs/application.dryml:21:in `block in person_editor'
app/views/taglibs/application.dryml:17:in `person_editor'
app/views/registrations/new.dryml:4:in `block (4 levels) in render_page'
app/views/registrations/new.dryml:3:in `block (3 levels) in render_page'
app/views/taglibs/auto/rapid/forms.dryml:64:in `block (3 levels) in 
form__for_registration'
app/views/taglibs/auto/rapid/forms.dryml:62:in `block (2 levels) in 
form__for_registration'
app/views/taglibs/auto/rapid/forms.dryml:62:in `block in form__for_registration'
app/views/taglibs/auto/rapid/forms.dryml:61:in `form__for_registration'
app/views/taglibs/auto/rapid/pages.dryml:688:in `block (6 levels) in 
new_page__for_registration'
app/views/taglibs/auto/rapid/pages.dryml:687:in `block (5 levels) in 
new_page__for_registration'
app/views/taglibs/auto/rapid/pages.dryml:687:in `block (4 levels) in 
new_page__for_registration'
app/views/taglibs/auto/rapid/pages.dryml:678:in `block (3 levels) in 
new_page__for_registration'
app/views/taglibs/themes/clean/clean.dryml:2:in `block in 
page_with_aaa82d3a9ca5'
app/views/taglibs/themes/clean/clean.dryml:1:in `page_with_aaa82d3a9ca5'
app/views/taglibs/front_site.dryml:12:in `block in page_with_a46705120a36'
app/views/taglibs/front_site.dryml:11:in `page_with_a46705120a36'
app/views/taglibs/auto/rapid/pages.dryml:675:in `block in 
new_page__for_registration'
app/views/taglibs/auto/rapid/pages.dryml:674:in `new_page__for_registration'
app/views/registrations/new.dryml:1:in `block in render_page'
app/views/registrations/new.dryml:1:in `render_page'
app/views/registrations/new.dryml:1:in 
`_app_views_registrations_new_dryml___3696370354641707024_70364650484020_3277638183384190033'

Any assistance would be most greatly appreciated!

Regards,

Peter

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/gBaU-mEDPC8J.
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