I have a folder like product_types. The controller file name is product_types_controller, and the class I have is ProductTypesController. I usually keep the _ format, which prefers rails, but I need to keep the syntax of the current page for search index reasons.
How do I get this controller to display in mysite.com/product-types and all pages in the product_types folder for mysite.com/product-types/some-page? Do I need to specify pages with - or should I use the _ syntax, and also just change the routes.
This is for the Rails 2.3.8 site.
thank
source
share