# Two or more forms in one page, and the controller will recie

**URL:** <https://www.ruby-forum.com/t/two-or-more-forms-in-one-page-and-the-controller-will-recie/105262>\
**Category:** Rails\
**Created:** [May 28, 2007, 8:13am UTC](https://www.ruby-forum.com/t/two-or-more-forms-in-one-page-and-the-controller-will-recie/105262 "2007-05-28T08:13:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smallbear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@Smallbear](https://www.ruby-forum.com/u/Smallbear)\
**Post date:** [May 28, 2007, 8:13am UTC](https://www.ruby-forum.com/t/two-or-more-forms-in-one-page-and-the-controller-will-recie/105262/1 "2007-05-28T08:13:34Z")

</div>

thanks everybody.

---

<div class="post-metadata">

**Author:** ![Smallbear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@Smallbear](https://www.ruby-forum.com/u/Smallbear)\
**Post date:** [May 28, 2007, 11:24am UTC](https://www.ruby-forum.com/t/two-or-more-forms-in-one-page-and-the-controller-will-recie/105262/2 "2007-05-28T11:24:50Z")

</div>

shold I put my answer into the subject line ?

What do you want to do exactly ? multiple model forms on one page  
(form\_tag); multiple forms and submitting both or mixing model forms  
(form\_for, fields\_for) with non-model fields ?

Please explain your use-case.

---

<div class="post-metadata">

**Author:** ![Smallbear](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@Smallbear](https://www.ruby-forum.com/u/Smallbear)\
**Post date:** [May 29, 2007, 3:19am UTC](https://www.ruby-forum.com/t/two-or-more-forms-in-one-page-and-the-controller-will-recie/105262/3 "2007-05-29T03:19:35Z")

</div>

Sorry for my bad forms.  
I want to multiple some the same model form and one submit in one  
page. There will be a def in the controller to create some objects to  
recieve all the model forms, but now, for example,  
@choices = Array.new(3){ Choice.new(params[:choice]) } #create objcets  
with the recieved forms params  
[:choice] means it can only comes one model form, what should I do to  
make all the forms come into the def???  
Thanks for your time.
