how to submit two form with one submit tag --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Joe, Could you be a little more specific and possibly post a code example or tell is in more detail what you''re trying to achieve? Cheers, James On Mon, Feb 25, 2008 at 3:28 PM, joe <joe.nayyar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > how to submit two form with one submit tag > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
hi james.... actually i am havng this is my first form... <%= form_tag :action => ''create'' %> <p><label for="article_title">Title</label>: <%= text_field ''article'', ''title'' %></p> <p><label for="article_category">Category</label>: <%= collection_select(:article,:category_id,@categories,:id,:name) %></p> <p><label for="article_description">Description</label><br/> <%= text_area ''article'', ''description'' %></p> -Tag : <%= text_field_tag ''tag_list'' %> <%= submit_tag "Create" %> <%= form_tag %> this is second form: <% form_for :article_cover, :url => { :action => ''create'', :id => @ article.id }, :html => { :multipart => true } do |f| -%> <p><%= f.file_field :uploaded_data %></p> <p><%= submit_tag : create %></p> <% end -%> if i use both forms seperately ....it works.....but when i combinng them ...the data s not savng...only null...is comng On Mon, Feb 25, 2008 at 11:02 AM, James Brooks <whitet73-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Joe, > Could you be a little more specific and possibly post a code example or > tell is in more detail what you''re trying to achieve? > > Cheers, > James > > > On Mon, Feb 25, 2008 at 3:28 PM, joe <joe.nayyar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > how to submit two form with one submit tag > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
hi, do this <% form_for :article_cover, :url => { :action => ''create'', :id => @ article.id }, :html => { :multipart => true } do |f| -%> <p><label for="article_title">Title</label>: <%= text_field ''article'', ''title'' %></p> <p><label for="article_category">Category</label>: <%= collection_select(:article,:category_id,@categories,:id,:name) %></p> <p><label for="article_description">Description</label><br/> <%= text_area ''article'', ''description'' %></p> -Tag : <%= text_field_tag ''tag_list'' %> <p><%= f.file_field :uploaded_data %></p> <p><%= submit_tag : create %></p> <% end -%> On Mon, Feb 25, 2008 at 11:17 AM, joe nayyar <joe.nayyar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi james.... > > actually i am havng > this is my first form... > > <%= form_tag :action => ''create'' %> > <p><label for="article_title">Title</label>: > <%= text_field ''article'', ''title'' %></p> > <p><label for="article_category">Category</label>: > <%= collection_select(:article,:category_id,@categories,:id,:name) %></p> > <p><label for="article_description">Description</label><br/> > <%= text_area ''article'', ''description'' %></p> > -Tag : <%= text_field_tag ''tag_list'' %> > <%= submit_tag "Create" %> > <%= form_tag %> > > > this is second form: > > <% form_for :article_cover, :url => { :action => ''create'', :id => @ > article.id }, :html => { :multipart => true } do |f| -%> > <p><%= f.file_field :uploaded_data %></p> > <p><%= submit_tag : create %></p> > <% end -%> > > if i use both forms seperately ....it works.....but when i combinng them > ...the data s not savng...only null...is comng > > On Mon, Feb 25, 2008 at 11:02 AM, James Brooks <whitet73-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi Joe, > > Could you be a little more specific and possibly post a code example or > > tell is in more detail what you''re trying to achieve? > > > > Cheers, > > James > > > > > > On Mon, Feb 25, 2008 at 3:28 PM, joe <joe.nayyar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > how to submit two form with one submit tag > > > > > > > > > > > > > > > >-- Thanks & Regards, Pavan Agrawal NOTICE : This transmission contains information that may be confidential and that may also be privileged. Unless you are the intended recipient of the message or authorized to receive it for the intended recipient, you may not copy, forward, or otherwise use it, or disclose it or its contents to anyone else. If you have received this transmission in error please notify us immediately and delete it from your system. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---