# Inconsistent routes

**URL:** <https://www.ruby-forum.com/t/inconsistent-routes/140387>\
**Category:** Deployment\
**Created:** [June 13, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/inconsistent-routes/140387 "2008-06-13T13:39:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chovy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@chovy](https://www.ruby-forum.com/u/chovy)\
**Post date:** [June 13, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/inconsistent-routes/140387/1 "2008-06-13T13:39:10Z")

</div>

I have a case where my production server is not handling the routes  
properly (mongrel)

Webrick handles them fine locally, and I also tested with mongrel  
locally and it works as well.

I have a link to /admin/orders/list and it says 500 error.

If I browser to /admin/orders/edit/2 I can edit the order entry.

any idea what change I need to make here? Its looking for “orders”  
method in admin\_controller.rb, when it should be looking for “list” in  
./admin/orders\_controller.rb

# instead of a file named ‘wsdl’

map.connect ‘:controller/service.wsdl’, :action =\> ‘wsdl’

# Install the default route as the lowest priority.

map.connect ‘:controller/:action/:id.:format’  
map.connect ‘:controller/:action/:id’

map.connect ‘:controller/:action.:format’  
map.connect ‘:controller.:format’

–  
Anthony E.  
408-656-2473  
[http://anthony.ettinger.name](http://anthony.ettinger.name)

---

<div class="post-metadata">

**Author:** ![chovy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@chovy](https://www.ruby-forum.com/u/chovy)\
**Post date:** [June 15, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/inconsistent-routes/140387/2 "2008-06-15T20:18:43Z")

</div>

On Jun 13, 4:38 am, “Anthony E.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> any idea what change I need to make here? Its looking for “orders”  
> map.connect ‘:controller/:action.:format’  
> map.connect ‘:controller.:format’

Is there a way to specify a path? ie:

./app/controllers/admin/orders\_controller.rb ?
