simple passthrough query version

This commit is contained in:
Dan Buch
2011-08-31 09:13:52 -04:00
parent 95591f4484
commit 1699dce6cb
2 changed files with 23 additions and 2 deletions

View File

@@ -1,2 +1,11 @@
<h1>Solr#index</h1>
<p>Find me in app/views/solr/index.html.erb</p>
<h1>Find Stuff!</h1>
<form action="" method="get" name="query">
<input type="text" name="q" value="<%= @search || "" %>"/>
<input type="submit" value="Search" />
</form>
<% if @results %>
<p>Results for &ldquo;<%= @search %>&rdquo;:</p>
<pre><%= h(@results) %></pre>
<% end %>