Forum: Ruby on Rails Insert database into two tables.

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.
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) ...so
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.