title: form_with search field in Rails 5.1
body: <p>In Rails 5.1 all the forms have to be done with <code>form_with</code>. In <a href="http://edgeguides.rubyonrails.org/5_1_release_notes.html#unification-of-form-for-and-form-tag-into-form-with" rel="noreferrer">http://edgeguides.rubyonrails.org/5_1_release_notes.html#unification-of-form-for-and-form-tag-into-form-with</a> I can only find examples for forms which are related to models.</p>
  
  <p>What is the correct way for this Rails 5.0 form to be done in Rails 5.1 with <code>form_with</code>?</p>
  
  <pre><code>&lt;%= form_tag("/search", method: "get") do %&gt;
    &lt;%= label_tag(:q, "Search for:") %&gt;
    &lt;%= text_field_tag(:q) %&gt;
    &lt;%= submit_tag("Search") %&gt;
  &lt;% end %&gt;
  </code></pre>