# Using '?' in routes

**URL:** <https://www.ruby-forum.com/t/using-in-routes/106509>\
**Category:** Rails\
**Created:** [June 11, 2007, 1:32pm UTC](https://www.ruby-forum.com/t/using-in-routes/106509 "2007-06-11T13:32:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glenn\_Gore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a8b319/32.png) [@Glenn\_Gore](https://www.ruby-forum.com/u/Glenn_Gore)\
**Post date:** [June 11, 2007, 1:32pm UTC](https://www.ruby-forum.com/t/using-in-routes/106509/1 "2007-06-11T13:32:36Z")

</div>

Hello,

I am trying to get routes to work with the following:

map.connect ‘:controller/:action?:x,:y’

The above route does not work as it seems to get caught up on the ‘?’.  
If I change the ‘?’ to any other separator character it works perfectly.

I am trying to get an image map to work  
\<%= link\_to(image\_tag(’/cage\_layout.png’, :ismap =\> ‘true’), :action =\>  
‘show’) %\>

Is there a way I can change how :ismap passes the variables (instead of  
?:x,:y).

I am using rails 1.2.3 with ruby 1.8.5

Regards

Glenn
