# Trouble with rails 2.0.2 and routes

**URL:** <https://www.ruby-forum.com/t/trouble-with-rails-2-0-2-and-routes/131982>\
**Category:** Rails\
**Created:** [March 14, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/trouble-with-rails-2-0-2-and-routes/131982 "2008-03-14T21:20:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bert\_Rapp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/8e7dd6/32.png) [@Bert\_Rapp](https://www.ruby-forum.com/u/Bert_Rapp)\
**Post date:** [March 14, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/trouble-with-rails-2-0-2-and-routes/131982/1 "2008-03-14T21:20:51Z")

</div>

I recently upgraded to rails 2.0.2.

I’ve been using this route:  
map.connect ‘things/search/param1,:param1/param2,:param2/  
param3,:param3/param4,:param4/param5,:param5/page,:page’, :controller  
=\> ‘search’, :action =\> ‘index’, :requirements =\> { :param1 =\> /\d  
+/, :param2 =\> /\d+/, :param3 =\> /\d+/, :param4 =\> /\d+/, :param5 =\> /  
\d+/, :page =\> /\d+/ }, :page =\> ‘1’

I’ve been using this URL:  
/things/search/param1,0/param2,0/param3,0/param4,0/param5,0/page,0

All of this has been working right up until I upgraded to rails  
2.0.2. Now I receive this error:  
No route matches “/things/search/param1,0/param2,0/param3,0/param4,0/  
param5,0/page,0” with {:method=\>:get}

The only changes about routes I can find is regarding nested  
namespaces and removing semicolons.

Does any one have any suggestions on this?

---

<div class="post-metadata">

**Author:** ![Bert\_Rapp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/8e7dd6/32.png) [@Bert\_Rapp](https://www.ruby-forum.com/u/Bert_Rapp)\
**Post date:** [March 17, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/trouble-with-rails-2-0-2-and-routes/131982/2 "2008-03-17T18:33:57Z")

</div>

I found a way around my problem. I’m not sure why, but the commas  
were the problem. I’ve found that I can change my current route by  
replacing the commas with slashes and it seems to work fine. I  
haven’t been able to find this documented anywhere.

change

map.connect ‘things/search/param1,:param1/param2,:param2/  
param3,:param3/param4,:param4/param5,:param5/page,:page’, :controller  
=\> ‘search’, :action =\> ‘index’, :requirements =\> { :param1 =\> /\d  
+/, :param2 =\> /\d+/, :param3 =\> /\d+/, :param4 =\> /\d+/, :param5 =\> /  
\d+/, :page =\> /\d+/ }, :page =\> ‘1’

to (replacing commas with slashes)

map.connect ‘things/search/param1/:param1/param2/:param2/  
param3/:param3/param4/:param4/param5/:param5/page/:page’, :controller  
=\> ‘search’, :action =\> ‘index’, :requirements =\> { :param1 =\> /\d  
+/, :param2 =\> /\d+/, :param3 =\> /\d+/, :param4 =\> /\d+/, :param5 =\> /  
\d+/, :page =\> /\d+/ }, :page =\> ‘1’
