# Routing problem: map.testroute ":param1/:param2-:param3-:param4.html"

**URL:** <https://www.ruby-forum.com/t/routing-problem-map-testroute-param1-param3-param4-html/134845>\
**Category:** Rails\
**Created:** [April 15, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/routing-problem-map-testroute-param1-param3-param4-html/134845 "2008-04-15T16:23:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lowang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@lowang](https://www.ruby-forum.com/u/lowang)\
**Post date:** [April 15, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/routing-problem-map-testroute-param1-param3-param4-html/134845/1 "2008-04-15T16:23:30Z")

</div>

hi,

I’m trying to create meaningful urls with routing extracting all  
params as specified:

map.testroute “:param1/:param2-for-:param3.html”

However this approach totally fails - it says Routing Error, No route  
matches “/aaaa/bbbb-for-ccc.html” with {:method=\>:get}

Then while browsing source code and some googling I’ve found that  
there is sth called

ActionController::Routing::SEPARATORS

so I’ve modified it in environment.rb:

ActionController::Routing::SEPARATORS \<\< ‘-’  
ActionController::Routing::Routes.reload!

Things were getting better now, request was processed as expected,  
however param1 does not accept - in it so:

GET /aa-aa/bbbb-for-ccc.html

still says:

No route matches “/aa-aa/bbbb-for-ccc.html” with {:method=\>:get}

Right now I’m out of ideas how to fix this using routes, probably I’ll  
try to create glob route and extract all params in before\_filter.

Does anyone has an idea how to solve such problem ?
