title: Append form input to external URL post
body: <p>I feel like I'm missing something really simple here. I have a search form on a Rails 4 app that takes inputted keywords and then needs to append them to an external URL. </p>
  
  <p>If the inputted keywords are: "banana orange" </p>
  
  <p>Then the desired URL would be: <a href="http://example.com/search/node/banana%20%orange" rel="nofollow">http://example.com/search/node/banana%20%orange</a></p>
  
  <p>Here is my current form in HAML: </p>
  
  <pre><code> .form-group.form-group-sm
     %form{"accept-charset" =&gt; "UTF-8", :action =&gt; "http://example.com/search/node/", :method =&gt; "post"}
       %input.form-control{placeholder: "Search site...", :type =&gt; "text"}
       %input.form-control{:type =&gt; "submit"}
  </code></pre>
  
  <p>When I click submit, I am redirected to just "<a href="http://example.com/search/node/" rel="nofollow">http://example.com/search/node/</a>". </p>
  
  <p>How can I get the inputted parameters from the form appended to the URL in the correct format? Thanks!</p>