Hi,

i want to have one form that has multiple search buttons. Something
like what google has (search and I'm feeling lucky). In this case I
want to have one search button to search the model groceries and the
other search button to search customers.

my search view is currently this:

                                        <% form_tag '/search', :method => "get" 
do %>
                                        <%= text_field_tag("query", 
params['query'], :size => 30 )   %>
                                        <%= submit_tag  "Search" %>
                                        <% end%>
my groceries controller is this:

                       def search
                        @grocery = Grocery.search params[:query], {:page => 
params
[:page], :per_page => SEARCH_PAGE_NO}
                        end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to