|
Revision 314, 471 bytes
(checked in by jk, 3 months ago)
|
to_param test for ferret_result, partial test
|
| Line | |
|---|
| 1 |
<h1>Search</h1> |
|---|
| 2 |
<% form_tag search_path do %> |
|---|
| 3 |
<fieldset> |
|---|
| 4 |
<legend>Search</legend> |
|---|
| 5 |
<%= text_field_tag 'q', @search.query %> |
|---|
| 6 |
</fieldset> |
|---|
| 7 |
<%= submit_tag 'search' %> |
|---|
| 8 |
<% end %> |
|---|
| 9 |
|
|---|
| 10 |
<% if @results -%> |
|---|
| 11 |
|
|---|
| 12 |
<p>Your search for <%= h @search.query %> returned <%= @results.total_hits %> Results:</p> |
|---|
| 13 |
|
|---|
| 14 |
<p><%= will_paginate @results %></p> |
|---|
| 15 |
<ul> |
|---|
| 16 |
<%= render :partial => 'content', :collection => @results -%> |
|---|
| 17 |
</ul> |
|---|
| 18 |
<p><%= will_paginate @results %></p> |
|---|
| 19 |
|
|---|
| 20 |
<% end -%> |
|---|