Smallbear
2007-May-28 06:12 UTC
two or more forms in one page, and the controller will recieve the forms into some object, how?
thanks everybody. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
lanzm
2007-May-28 09:24 UTC
Re: two or more forms in one page, and the controller will recieve the forms into some object, how?
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. On 28 Mai, 08:12, Smallbear <abcdefg_2...-9Onoh4P/yGk@public.gmane.org> wrote:> thanks everybody.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Smallbear
2007-May-29 01:19 UTC
Re: two or more forms in one page, and the controller will recieve the forms into some object, how?
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.
On May 28, 5:24 pm, lanzm
<marcel.l...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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.
>
> On 28 Mai, 08:12, Smallbear
<abcdefg_2...-9Onoh4P/yGk@public.gmane.org> wrote:
>
> > thanks everybody.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---