Hi there,<br><br>My routes.rb is something like<br><br>map.connect ':controller/:action/:id'<br><br>However, when a url request likes <br><a href="http://xxx/user/category/a/b">http://xxx/user/category/a/b</a><br><br>My intension is to call
<br>:controller =&gt; 'user'<br>:action =&gt; 'category'<br>:id =&gt; 'a/b'<br><br>However, :id has slash in it (a/b) will make rails fail to route.<br>(apache fail, webrick works fine somehow)<br><br>It seems like rails will try to match route rule with 
<br>map.connect :controller/:action/:id/:others<br>but failed.<br><br>I know one solution is to call CGI.escape in link_to or url_for , like<br>link_to :controller =&gt; 'user', :action =&gt; 'category', :id =&gt; CGI.escape
(category)<br><br>and unescape when I got it.<br>category = CGI.unescape(params[:category])<br><br>Any better solution ? <br>Thanks.<br><br>Gary<br><br>