On Feb 13, 2007, at 6:58 PM, Patrick Aljord wrote:> hey all,
> I have a form in my view and in a partial I have another form. The
> problem is that mozilla and IE always pick the first form (in that
> case, the ''update'') even when I click on the second
button. Konqueror
> and Safari though do pick the right form.
>
> this is my view:
>
> <% form_remote_tag( :url =>
{:action=>''update'',:id=>@user}) do -%>
> <%= text_field_tag(''merge'') %>
> <div id="yoid">
>
> <%= render :partial => "cranking", :locals => {:ranks
=> @ranks} %>
>
> </div>
> <% end %>
>
> this is my partial _cranking.rhtml:
>
> <% form_remote_tag(:url
=>{:action=>''suggesttitle''}) do -%>
> <%= text_field_tag(''suggestedtitle'') %>
> <%= submit_tag(''Submit'') %>
> <% end %>
>
> is there anyway to tell mozilla and IE to pick the second form when I
> click on the second button?
>
> thanx in advance
>
> Pat
Forms aren''t permitted to be nested. You have:
<form action=update ...>
<form action=suggesttitle ...>
<input type=submit ...>
</form>
</form>
You don''t show the second button anywhere (or maybe you only show the
second?). Perhaps you want to have a button_to_remote (or a
button_to_function) for the suggesttitle part, yeah?
-Rob
Rob Biedenharn http://agileconsultingllc.com
Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---