Nested Controllers - Development vs. Production mode

Perhaps you've modified routes.rb without restarting the server in production?

Jeff softiesonrails.com

Ah, sorry I thought you were using restful controllers with map.resources. I think yes, the problem is that admin/users (for example) is being matched incorrectly by the catch-all case. Try this:

map.connect 'admin/users/:action/:id', :controller => 'admin/users'

and place it above all of the others. If this helps, you can do the same for the other subcontrollers too. Once working, I think you can simplify all of the admin routes by using path_prefix instead. But try them one at a time first, that's how I'm able to understand what's going on first.

And let me know if this helps or not. :slight_smile:

Jeff softiesonrails.com essentialrails.com

Awesome! Glad to help.

Jeff softiesonrails.com essentialrails.com