Forum: Ruby on Rails Insert database into two tables.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Socheat Yi (Guest)
on 2006-05-15 18:40
(Received via mailing list)
Hi All,

I have problem with inserting new record into the database.

I have a form has 4 fields, and two fields will be inserted into tableA,
and other fields will be inserts into tableB.

These two tables has relationship tableA(One) and tableB (Many)
how could I do that?

Socheat Yi
Web Programmer/Software Developer
Screened Images Multimedia (SIM)
*If You Can Imagine It...We Can Create It.
This topic is locked and can not be replied to.