title: Rails how to request url except url params?
body: <p>I am creating this link tag:</p>
  
  <pre><code>&lt;link rel="canonical" href="&lt;%= request.url %&gt;" /&gt;
  </code></pre>
  
  <p>The problem is just it is the full url with params.</p>
  
  <p>How do I request the url without any params? </p>