Hi all;

I'm posting this here to help anyone else who hits this little problem, and 
also so that when I search for the issue a year from now, I'll find the 
notes to myself. 

I was trying to get a hobo_jquery dialog to render a form on an Edit page:

<dialog-open-button class="btn btn-xs btn-primary" 
dialog="#new_address_dialog">
   New Address
</dialog-open-button> 

<dialog-box title="New Address" width="760px" position="center" 
modal="true" closeOnEscape="true"
    id="new_address_dialog" 
    buttons='&[["Save", "hjq_dialog_box.submitAndClose"], ["Cancel", 
"hjq_dialog_box.close"]]'>
           
   <form id="new_address_form" 
       with="&@entity.addresses.build(:address_type => 
Address::AddressType::UNKNOWN)"
       update="div-addresses" success="hjq_dialog_box.close" 
without-actions /> 
</dialog-box>


But, the pop-up form continued to appear blank, with the log file showing:

[INFO ] polymorphic_url has failed with NoMethodError: undefined method 
`addresses_path' for #<#<Class:0x007f90e6685910>:0x007f90e6684b28>
[INFO ] unable to render form: the 'action' attribute was not provided and 
the automatic action could not be found

The issue was that I had inadvertently named my controller 
"AddressController" instead of "Address*es*Controller".

A quick rename of the file and controller name, and the form rendered. 

Hope that helps,
Tim

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to