Is there a simple way to edit two tables with a has_many/belongs_to
relationship? I have a very typical parent table (Departments) with
an id, name, description, etc. And I have a child Resources table
with an id, department_id, title, description, and other fields.
I want to allow a user to edit the child table but I see that the
standard behavior for scaffolds is to suppress displaying key fields
(primary and foreign) is there a way to override this?
Basically when I’m editing the child record I really need to display
the Department.title. I know I can do this by hand, but I’d like
the scaffolding to help me if possible! is it?
Thanks,
Gary H.