How do I get rid of this routing warning?

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs