Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
Add UI for full text search
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 9, 2015
1 parent 7b3a0bc commit afc11c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/documents/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit afc11c8

Please sign in to comment.