Skip to content
Permalink
Browse files

Add UI for full text search

  • Loading branch information...
kou committed Nov 9, 2015
1 parent 7b3a0bc commit afc11c833664ede0f85eb6138f8ce2fa8e5d58d9
Showing with 7 additions and 0 deletions.
  1. +7 −0 app/views/documents/index.html.erb
@@ -2,6 +2,13 @@

<h1>Listing Documents</h1>

<p><%= @documents.count %> records</p>

<%= form_tag(documents_path, method: "get") do %>
<%= search_field_tag "query", params["query"] %>
<%= submit_tag "Search" %>
<% end %>

<table>
<thead>
<tr>

0 comments on commit afc11c8

Please sign in to comment.
You can’t perform that action at this time.