Forum: Ruby on Rails two or three tables in one 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.
ngoc (Guest)
on 2006-03-06 17:47
I am new to RoR. I watched video presentation of 15 minutes to create a
blog. What I understand is RoR brings/maps the database table to web
form (using
script\generate model Post and later script\generate controller Blog).
In the case ,I have 2 and 3 tables into 1 form. Does RoR support that?
For example: I store products and providers in two tables. These two
tables link together by "product_id" and "provider_id".But "product_id"
and "provider_id" are hard to read. I want one form that take
"product_name" and "product_description" from "product" table ;
"provider_name, adresse, etc.." from "provider" table. So I can
This topic is locked and can not be replied to.