# Form\_for for multiple methods

**URL:** <https://www.ruby-forum.com/t/form-for-for-multiple-methods/107539>\
**Category:** Rails\
**Created:** [June 22, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/form-for-for-multiple-methods/107539 "2007-06-22T20:11:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![freewolf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@freewolf](https://www.ruby-forum.com/u/freewolf)\
**Post date:** [June 22, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/form-for-for-multiple-methods/107539/1 "2007-06-22T20:11:28Z")

</div>

Is there a way to set up a form\_for helper to work with multiple  
methods.  
I want to submit the form data into two different tables.

Blessed Be

Phillip

---

<div class="post-metadata">

**Author:** ![freewolf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@freewolf](https://www.ruby-forum.com/u/freewolf)\
**Post date:** [June 24, 2007, 1:54am UTC](https://www.ruby-forum.com/t/form-for-for-multiple-methods/107539/2 "2007-06-24T01:54:51Z")

</div>

Phillip B. wrote:

> Is there a way to set up a form\_for helper to work with multiple  
> methods.  
> I want to submit the form data into two different tables.

Have your form submit to one method. In that method, split the data up  
and create/update two separate model objects.

If you’re working with strictly REST-style controllers, you should  
create a reified object (that is, one that doesn’t map directly to a DB  
table) and have it delegate to the real models.

Chris K.  
[http://kampers.net](http://kampers.net)
