Multiple Submits on Same View

I am trying to have more than one search box on the same view. If I put
only one of the searches on the page, it works fine. If I have more than
one, the only one that works is the first one. Here is the code from my
view:

Search By Tag #

<%= form_tag :action => 'find_tag_num' %> <%= text_field_tag :tag_num %> <%= submit_tag 'Submit' %>

Search By Description

<%= form_tag :action => 'find_descrip' %> <%= text_field_tag :descrip %> <%= submit_tag 'Submit' %>

When I do a mouse-over on the first submit button in my view, it shows
“find_tag_num” and it also says “find_tag_num” when I mouse-over the
second submit button.

I think I need something between the two in this example to allow them
both to work from the same view?

thanks

atomic

On 14 Mar 2011, at 23:59, “A. Mcbomb” [email protected] wrote:

I am trying to have more than one search box on the same view. If I put
only one of the searches on the page, it works fine. If I have more than
one, the only one that works is the first one. Here is the code from my
view:

You’re not closing your tags, so you end up with nested forms,
which isn’t allowed (if you use the block form of form_tag it will close
tags for you)

Fred

thanks Fred…that helped and I got it working

regards

atomic