I am working on an advanced search where I want to allow for more than
one parameter to be searched through. For example, there are two
fields that allow the user to search for all jobs that are performed
during this date range and by this analyst.
This is what I have so far in the view but it is not working as I
hoped. I also generated a general search text field to perform the
basic search. How would ts search with more parameters.
<p>
Job Number:
<%= text_field_tag :search, params[:search] %>
</p>
<p>
Company Name:
<%= text_field_tag :search, params[:search] %>
</p>
<p>
Client Number:
<%= text_field_tag :search, params[:search] %>
</p>
<p>
Analyst:
<%= text_field_tag :search, params[:search] %>
</p>
#General search
<div class="buttons">
Any Search:
<% form_tag jobs_path, :method => :get do %>
<%= text_field_tag :search %>
<%= submit_tag 'Search' %>
<% end %>
</div>
--
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.