title: Rails: How to escape ampersand in URL formation
body: <p>I have a <code>link_to</code> helper like the following:</p>
  
  <pre><code>&lt;%= link_to "example &amp; text", url_for(:controller =&gt;'example', :title=&gt;"example &amp; text") %&gt;
  </code></pre>
  
  <p>It frames the URL <code>http://localhost:3000/example?title=example&amp;amp:text</code></p>
  
  <p>In the sample controller it calls the <code>index</code> method but <code>params[:title]</code> returns 
  the value <code>example&amp;amp:text</code>.</p>
  
  <p>I want to have a value like "example &amp; text". So I have tried 
  <code>CGI::escape()</code> and <code>CGI::escapeHTML()</code> but without luck. </p>