On Aug 31, 2007, at 1:02 PM, Jose Galvez wrote:
so would adding mapper(':controller', action='index') above mapper (':controller/:action') map /main as main/index or will there be no real way to map a controller without an action to the index action?
That would work just fine. Though I'd be curious why you would want: /users /users/index To be equivalent, even though thats how it works now.Especially if your index view has things under a relative URL. This means that ppl bookmarking your site could likely be bookmarking the same page and it won't show up that way. It'll also show up as different in webstat tools making it harder to get accurate page hit counts. That's part of the reason why I think you're better off just having /users/index and letting url_for take care of generating the routes as appropriate.
Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
