Re: two routes / dispatch questions

2010-01-30 Thread Jonathan Vanasco
On Jan 30, 2:06 am, Mike Orr sluggos...@gmail.com wrote: I consider such slash manipulation to be highly unorthodox and undesirable, but that's how you can do it if you want to. Thanks Mike! I find the slash manipulation to be standard. The default behavior for static webservers has been:

Re: two routes / dispatch questions

2010-01-30 Thread Mike Orr
On Sat, Jan 30, 2010 at 2:11 PM, Jonathan Vanasco jonat...@findmeon.com wrote: On Jan 30, 2:06 am, Mike Orr sluggos...@gmail.com wrote: I consider such slash manipulation to be highly unorthodox and undesirable, but that's how you can do it if you want to. Thanks Mike! I find the slash

two routes / dispatch questions

2010-01-29 Thread Jonathan Vanasco
using Routes 1.10 and 1.11 ... 1) how can i match to a single controller's /admin - def index /admin/ - def index /admin/$action$ - def $action must i do this explicitly in two calls ? because /admin/{action} requires the / 2) is it possible to use the {action} as a

Re: two routes / dispatch questions

2010-01-29 Thread Mike Orr
On Fri, Jan 29, 2010 at 10:07 AM, Jonathan Vanasco jonat...@findmeon.com wrote: using Routes 1.10 and 1.11 ... 1) how can i match to a single controller's      /admin   - def index      /admin/  - def index      /admin/$action$  - def $action This requires three routes. Normally you