how to submit two form with one submit tag
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
hi james…
actually i am havng
this is my first form…
<%= form_tag :action => ‘create’ %>
Title: <%= text_field 'article', 'title' %>
Category: <%= collection_select(:article,:category_id,@categories,:id,:name) %>
Description
<%= text_area 'article', 'description' %>
this is second form:
<% form_for :article_cover, :url => { :action => ‘create’, :id => @
article.id }, :html => { :multipart => true } do |f| -%>
<%= f.file_field :uploaded_data %>
<%= submit_tag : create %>
<% end -%>if i use both forms seperately …it works…but when i combinng them
…the data s not savng…only null…is comng
hi,
do this
<% form_for :article_cover, :url => { :action => ‘create’, :id => @
article.id }, :html => { :multipart => true } do |f| -%>
Title: <%= text_field 'article', 'title' %>
Category: <%= collection_select(:article,:category_id,@categories,:id,:name) %>
Description
<%= text_area 'article', 'description' %>
<%= f.file_field :uploaded_data %>
<%= submit_tag : create %>
<% end -%>On Mon, Feb 25, 2008 at 11:17 AM, joe nayyar [email protected]
wrote:
Description
<%= f.file_field :uploaded_data %>
> tell is in more detail what you're trying to achieve? > > > > >
–
Thanks & Regards,
Pavan A.
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.