map.category ‘product_category/:page/path/:path’,
:controller => ‘product_category’,
:action => ‘show’,
:requirements => {:path => /.+/, :page=>/\d+/},
:page =>1
warning is
“Route segment “:page” cannot be optional because it precedes a
required segment. This segment will be required.”
I don’t understand how :page is optional?
Been googling and reading the code of RouteBuilder but I’ve been
unable to figure it out.
Rails 1.2.6