box-o-sand/oldstuff/RubyFun/rails/hamster/app/views/solr/simple_query.html.erb

17 lines
402 B
Plaintext

<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.length %>
<p>Results for &ldquo;<%= @search %>&rdquo;:</p>
<ul>
<% @results.each do |result| %>
<li><strong><%= result[:id] %></strong>: <%= result[:description] %></li>
<% end %>
</ul>
<% end %>