On 14 Mar 2011, at 23:59, "A. Mcbomb"
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 <form> 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> <h1>Search By Tag #</h1>
> <%= form_tag :action => ''find_tag_num'' %>
> <%= text_field_tag :tag_num %>
> <%= submit_tag ''Submit'' %>
>
> <h1>Search By Description</h1>
> <%= 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
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.