title: Rails - escaping URL parameters in a route
body: <p>I've got a rails application with a route:</p>
  
  <pre><code>put /soa/orders/:order_id =&gt; 'soa/orders#update'
  </code></pre>
  
  <p>The snag I have hit is that <code>:order_id</code> is a string, not an integer, and typically of a format such as <code>ABC - 001</code>.  Since spaces are not valid in a URL, the order_id is URL escaped to <code>ABC+-+001</code>.</p>
  
  <p>I was expecting Rails to automatically unescape this parameter, the same way it would do with other parameters, but it does not appear to.  I have got it working, by manually unescaping it, but I wanted to check if anyone knows, is this intended behaviour or does it only do what I'm seeing in specific circumstances?</p>