Forum: Ruby on Rails Need Suggestion on handling multiple associated models

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8d295740bdc6fecc406cff2e8b895f48?d=identicon&s=25 Sahil Dave (Guest)
on 2009-03-05 07:47
(Received via mailing list)
hi guys..

I am new to rails and need some pointers on how i should handle multiple
related models.
 ' ' => model
In my app i am creating and handling some 'deals'. Each 'deal' has got
some
'orders', and each 'order' has certain 'duties'.
Now what i am doing currently is, on the new_deal page itself, i am
dynamically adding orders for that deal (using attribute_fu).

I also need some ajax functionality on this page. but that works for
only
the fields that are initialy present on the page, when its loaded (as i
am
not able to set the id's for dynamic fields)

Can you guys suggest me some other better way to handle the above
scenario.
i have asked at many forums, channels and they always tell me to avoid
using
mutiple models in a single page.

Regards
--
Sahil
This topic is locked and can not be replied to.