title: Is there any way to encode the URL at runtime in rails?
body: <p>In my rails application, I have search functionality. A user may directly enter a search string in the URL. If the user enters a search string as <code>'%'</code>, the URL becomes:</p>
  
  <pre><code>http://localhost:3000/search/% 
  </code></pre>
  
  <p>and that produces Bad Request error. Is there any option to encode the URL at runtime?</p>