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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---