title: Rails routes related to a search form
body: <p>On my latest web site I have a search form defined like this:</p>
  
  <pre><code>= form_tag search_path(:termen), :method =&gt; :get do
    = text_field_tag :termen, params[:termen]
    = submit_tag "Search »"
  </code></pre>
  
  <p>And a route:</p>
  
  <pre><code># search
  get "search(/:termen)" =&gt; "articole#cauta", :as =&gt; :search
  </code></pre>
  
  <p>I want when I press the search button to be get to a url like:</p>
  
  <pre><code>http://www.mysite.com/search/[the_termn_that_was_typed]
  </code></pre>
  
  <p>So for example when I am searching "vampires" I should get:</p>
  
  <pre><code>http://www.mysite.com/search/vampire
  </code></pre>
  
  <p>Any clues on this one?</p>
  
  <p>Thank you a lot,</p>