Submitting data to two tables

I’m very new to Rails. I’ve been reading Agile Web Dev for a while and
read
up on ruby, but I’m still learning.

I designed a website for someone for an engineering shop. New projects
had
to be added manually.

Well, I figured this would be a great canidate for railifying! I have
the
form working perfectly, you can add your data and get it in a table, and
listing projects works, too. I’m working on a photo gallery now, and I
have
a lot of it working. I took it from the agile web dev book. I’d like to
know
how to join the two forms and submit it as one.

I’m not sure how to submit data to two different places via one form.
Suggestions and links are greatly appreciated. Thanks!