title: Routing in Rails. Dots in URL
body: <p>I have overwritten <code>to_param</code> method in my <code>Category</code> model</p>
  
  <pre><code>def to_param
    name
  end
  </code></pre>
  
  <p>And <code>routes.rb</code></p>
  
  <pre><code>get '/:id' =&gt; 'categories#show', :as =&gt; :category
  </code></pre>
  
  <p>When <code>name</code> parameter doesn't contain any dots (<code>foobar</code>), all works right, but when it does (<code>f.o.o.b.a.r</code>)
  I get an error <code>No route matches [GET]</code>. So my question is: is it possible to use dots in routing like a part of name of parameter? Or what can I do to accomplish this purpose, maybe some hooks or something. Any help is appreciated.</p>