refactored search

This commit is contained in:
albert
2013-01-10 17:45:52 -05:00
parent 13271e9bf5
commit 8749c43b3e
85 changed files with 946 additions and 304 deletions

View File

@@ -3,10 +3,10 @@
<h1>Search Changes</h1>
<div id="search">
<%= simple_form_for(@search) do |f| %>
<%= f.input :updater_name_matches, :label => "User", :required => false %>
<%= f.input :post_id_eq, :label => "Post", :required => false %>
<%= f.button :submit, :value => "Search" %>
<%= form_tag(post_versions_path, :method => :get, :class => "simple_form") do %>
<%= search_field "updater_name", :label => "User" %>
<%= search_field "post_id", :label => "Post" %>
<%= submit_tag "Search" %>
<% end %>
</div>
</div>