Hi Bryan,
I am on Rails 2.3.2 with Hobo 0.8.8. My Items form override in
application.dryml is:

<!-- Extensions for item form-->
<extend tag="form" for="Item">
        <old-form merge>
                <field-list: fields="cost,sell_price,book">
                <book-view:>
                        <name-one complete-target="&@item" 
completer="pick_book"/>
                </book-view:>
                </field-list:>
        </old-form>
</extend>

This works fine if I display the sale with items, select an item and
then edit it individually.

However, the items appear as repeating "subforms" in the sales form
and there the item overrides do nothing.
My sales form is also overridden in the application.dryml and looks
like:
<!-- Extensions for sale form -->
<extend tag="form" for="Sale">
        <old-form merge>
                <field-list:>
                <contact-view:>
                        <name-one complete-target="&@sale" 
completer="pick_contact"/>
                </contact-view:>
                </field-list:>
        </old-form>
</extend>

I'd appreciate any help!

Thanks,
Mike

On Jun 29, 11:54 am, Bryan Larsen <[email protected]> wrote:
> You seem to be on the right track.  Can you post your code?   Are you
> putting your override in application.dryml?
>
>
>
> oldlibmike wrote:
> > I have a master detail relationship with Sales and Items.
> > Sales has_many :items, :accessible => true, :dependent => :destroy
> > Items belongs_to :sale
>
> > When I display the sales edit form, there is a repeating group
> > of :items that I can presumably edit, add or delete.
>
> > I have tried to override the form for item and when editing an item
> > all by itself, my overrides work.
>
> > When the item appears on the sales edit form however, none of my
> > overrides are there. The default edit form for item is displayed.
>
> > How would I overrided the item form in the context of its parent Sale?
>
> > Thanks in advance,
> >  Mike
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to