The "params[:order] ||= params.delete(:sort)" is to support existing
links using sort.
This commit is contained in:
Toks
2013-07-12 13:18:19 -04:00
parent 205904e2e3
commit 46aad0d3f1
10 changed files with 23 additions and 29 deletions

View File

@@ -6,8 +6,8 @@
<%= search_field "body_matches", :label => "Body" %>
<div class="input">
<label for="search_sort">Sort</label>
<%= select "search", "sort", ["Name", "Date"] %>
<label for="search_order">Order</label>
<%= select "search", "order", ["Name", "Date"] %>
</div>
<%= submit_tag "Search" %>