Fixes #38: Search function for the forums requires all fields to be filed out

This commit is contained in:
albert
2011-09-11 14:49:06 -04:00
parent 3183872b1e
commit 0c895f892b

View File

@@ -2,8 +2,8 @@
<div id="a-search">
<h1>Search Forum Posts</h1>
<%= simple_form_for @search do |f| %>
<%= f.input :topic_title_matches, :label => "Title" %>
<%= f.input :body_matches, :label => "Body" %>
<%= f.input :topic_title_matches, :label => "Title", :required => false %>
<%= f.input :body_matches, :label => "Body", :required => false %>
<%= f.button :submit, "Search" %>
<% end %>
</div>