You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
401 B
16 lines
401 B
<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 “<%= @search %>”:</p>
|
|
<ul>
|
|
<% @results.each do |result| %>
|
|
<li><strong><%= result[:id] %></strong>: <%= result[:description] %></li>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|