# No route found to match "..." with {:method=\>:get}

**URL:** <https://www.ruby-forum.com/t/no-route-found-to-match-with-method-get/111177>\
**Category:** Rails\
**Created:** [August 3, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/no-route-found-to-match-with-method-get/111177 "2007-08-03T15:38:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@sri](https://www.ruby-forum.com/u/sri)\
**Post date:** [August 3, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/no-route-found-to-match-with-method-get/111177/1 "2007-08-03T15:38:12Z")

</div>

Hi,

I tried searching Google but didn’t find anything relevant.

When I try to ‘show’ I get the following error:  
no route found to match “/pay\_files/show/9.0” with {:method=\>:get}

However the url “/pay\_files/show/9” works fine. The ‘.0’ is causing  
the issue.

Thanks for any help.

Sri

---

<div class="post-metadata">

**Author:** ![sri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@sri](https://www.ruby-forum.com/u/sri)\
**Post date:** [August 3, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/no-route-found-to-match-with-method-get/111177/2 "2007-08-03T17:45:26Z")

</div>

> When I try to ‘show’ I get the following error:  
> no route found to match “/pay\_files/show/9.0” with {:method=\>:get}
> 
> However the url “/pay\_files/show/9” works fine. The ‘.0’ is causing  
> the issue.

The dot “.” is a delimiter in routes like slash “/”. You probably  
don’t have a route like  
:controller/:action/:id.:sth  
However, you can add ":id =\> /._/" to the route:  
map.connect ‘:controller/:action/:id’, :id =\> /._/  
This way the id can be of any kind, the route will alway match. But  
remember to handle params[:id] properly.

regards, \_jan

---

<div class="post-metadata">

**Author:** ![sri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9a140/32.png) [@sri](https://www.ruby-forum.com/u/sri)\
**Post date:** [August 3, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/no-route-found-to-match-with-method-get/111177/3 "2007-08-03T21:06:54Z")

</div>

Jan,

You are right I had one route without the :id =\> /._/  
map.connect ‘:controller/:action/:id’, :id =\> /._/  
but not  
map.connect ‘:controller/:action/:id’, :id =\> /.\*/

It did the trick.

Thank you,  
Sri
