# Trouble routing with sub controller

**URL:** <https://www.ruby-forum.com/t/trouble-routing-with-sub-controller/144516>\
**Category:** Rails\
**Created:** [July 30, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/trouble-routing-with-sub-controller/144516 "2008-07-30T15:51:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@jack](https://www.ruby-forum.com/u/jack)\
**Post date:** [July 30, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/trouble-routing-with-sub-controller/144516/1 "2008-07-30T15:51:43Z")

</div>

Hello,

I’ve got an app that is working fine on my local system such that a  
URL like this

[http://localhost:3000/admin/customer/list](http://localhost:3000/admin/customer/list)

routes to controller =\> admin/customer, action =\> list

and something like this

[http://localhost:3000/admin/customer/show/2002](http://localhost:3000/admin/customer/show/2002)

routes to controller =\> admin/customer, action =\> show, id =\> 2002

However, when I copy this to a server to run it there, the URL like

[https://server.edu/admin/customer/show/2002](https://server.edu/admin/customer/show/2002)

routes properly. But the URL like

[https://server.edu/admin/customer/list](https://server.edu/admin/customer/list)

routes to controller =\> admin, action =\> customer, id =\> list

The routes.rb file is identical in both places. What would I want to  
look at on the server to figure out what I need to change? The only  
difference I see is the SSL URL in use on the server. But I can’t  
imagine that’s the culprit since one of the SSL URLs is working.

Anybody with some suggestions on what to check?

Thanks,  
Jack

---

<div class="post-metadata">

**Author:** ![jack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cc9497/32.png) [@jack](https://www.ruby-forum.com/u/jack)\
**Post date:** [July 30, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/trouble-routing-with-sub-controller/144516/2 "2008-07-30T15:56:59Z")

</div>

On Jul 30, 9:50 am, Jack [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [https://server.edu/admin/customer/list](https://server.edu/admin/customer/list)  
> Thanks,  
> Jack

As a follow up, I just checked the version of mongrel on my local  
system and the server. Localhost is running Mongrel version 1.1.3. The  
SSL server is running Mongrel version 1.0.1 Could the older version on  
the server be causing a problem with this?
