Rails routing improperly

software development

#1

I have an application that has a sub-controller called ‘customer/product’ (Note: customer is also a controller). Everythgin seems to work fine on my application untill I start accessing pages inside the ‘customer/product’ controller.

For Example:

if I go to rails.domain.com/customer/product/ I get a 404 error.
However, if I go to rails.domain.com/customer/product// then the page loads just fine. So to get a listing of all my products, I have to go to rails.domain.com/customer/product/list/1 instead of just rails.domain.com/customer/product/list.

I have tried several tweaks in the routes.rb file and nothing seems to work. This application runs flawlessly on my local machine.

Cheers
Joe