diff --git a/app/views/notes/search.html.erb b/app/views/notes/search.html.erb
index 5a2174aa7..f70315929 100644
--- a/app/views/notes/search.html.erb
+++ b/app/views/notes/search.html.erb
@@ -2,13 +2,13 @@
Search Notes
- <%= form_tag(notes_path, :method => :get, :class => "simple_form") do %>
- <%= hidden_field_tag "group_by", "note" %>
+ <%= simple_form_for(:search, url: notes_path, method: :get, defaults: { required: false }) do |f| %>
+ <%= f.hidden_field :group_by, value: "note" %>
- <%= search_field "body_matches", :label => "Body" %>
- <%= search_field "creator_name", :label => "Author" %>
- <%= search_field "post_tags_match", :label => "Tags" %>
- <%= submit_tag "Search" %>
+ <%= f.input :body_matches, label: "Body" %>
+ <%= f.input :creator_name, label: "Author" %>
+ <%= f.input :post_tags_match, label: "Tags" %>
+ <%= f.submit "Search" %>
<% end %>