I think I'm doing something wrong trying to extend one of my forms.
Details are below. Any help is appreciated.
Thanks,
Arman
I have two models rfq and rfq_line_item with the following
relationships:
rfq
has_many :bids, :dependent => :destroy
has_many :rfq_line_items, :dependent => :destroy, :accessible =>
true
belongs_to :rfq_creator, :class_name => "User", :creator => true
rfq_line_item
belongs_to :rfq
In application.dryml I have the following to customize the field list
and add a sub-form for line items:
<extend tag="form" for="Rfq">
<old-form merge param="default">
<error-messages param/>
<field-list fields="title, details, bidding_close_dt, status,
bids, rfq_line_items" param/>
<input-many:rfq_line_items><field-list fields="part_number,
description, quantity" param/></input-many>
<div param="actions">
<submit label="Save" param/><or-cancel param="cancel"/>
</div>
</old-form>
</extend>
New rfq form results in:
NotImplementedError in RfqsController#new
An input for has-many associations has not been implemented yet
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---