olivier Hericord
2005-Dec-30 21:39 UTC
Best way to handle associated object creation WithIN the SAME form ?
hi, let''s take a very simple example. 2 tables: people and phones One person has_many :phones One phone belongs_to :person (the phone table contains a person_id) i began with the classical scaffold generator for the main form (the people form).... How can i add a phone , associated to the NOT YET SAVED person objet , with an ajax mean? do i have to put the unsaved person in session to be abble to associate a new phone to it with ajax? just trying to make a single screen address book like in the joyent teaser. help
Seemingly Similar Threads
- HOW TO create a new record and its associated objects within the SAME PAGE
- how to generate the api documentation localy with the same frameset as the online version?
- Can I tell if the associated record is new in a belongs_to save?
- Polymorphic form
- JRuby Hack Day (San Francisco, CA)