Forum: Ruby-dev Problem: insert data in two tables from an input form.

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.
C1923672c96592b38c570691547889ee?d=identicon&s=25 Md. Ruhul Amin (Guest)
on 2007-04-18 05:37
(Received via mailing list)
Hi guys,
I have two tables.
Table1: output_columns  (3 columns)
Table2: file_datas      (2 columns)
In any table I can search, show, edit data. But how can I insert data in
two table?
In my input form there are 5 input fields. I want to input 3 data in
table1 and last 2 data in table2. In the OutputColumnsController (the
controller of table1) I have written the following code
def create
    @output_column =[:output_column])
      flash[:notice] = 'OutputColumn was successfully created.'
      redirect_to :action => 'list'
      render :action => 'new'
    By this code I can save in the table1. But how can I handle the
input data in table2?
Plz help me.

株式会社 SAO (エス エー オー)
This topic is locked and can not be replied to.