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

@@ -1,10 +1,11 @@
<div id="c-forum-topics">
<div id="a-search">
<h1>Search Forum</h1>
<%= simple_form_for @search do |f| %>
<%= f.input :topic_title_matches, :label => "Title", :required => false %>
<%= f.input :body_matches, :label => "Body", :required => false %>
<%= f.button :submit, "Search" %>
<%= form_tag(forum_topics_path, :method => :get, :class => "simple_form") do %>
<%= search_field :topic_title_matches, :label => "Title" %>
<%= search_field :body_matches, :label => "Body" %>
<%= search_field :creator_name, :label => "Author" %>
<%= submit_tag "Search" %>
<% end %>
</div>
</div>