title: How to get link_to in Rails output an SEO friendly url?
body: <p>My link_to tag is:</p>
  
  <pre><code>&lt;%= link_to("My test title",{:controller=&gt;"search", :action=&gt;"for-sale", :id=&gt; listing.id, :title =&gt; listing.title, :search_term =&gt; search_term}) %&gt;
  </code></pre>
  
  <p>and produces this ugly URL:</p>
  
  <pre><code>http://mysite.com/search/for-sale/12345?title=premium+ad+%2B+photo+%5Btest%5D
  </code></pre>
  
  <p>How can I get link_to to generate:</p>
  
  <pre><code>http://mysite.com/search/for-sale/listing-title/search-term/12345
  </code></pre>
  
  <p>Been trying this a few different ways and cannot find much online, really appreciate any help!</p>