Routes and the leading slash

1 view
Skip to first unread message

Marcin Kasperski

unread,
Nov 9, 2009, 2:07:08 PM11/9/09
to pylons-...@googlegroups.com

Well, something has changed.

Not so long ago, I used to write my routes as

map.connect(':controller/:action')

now such a route fails to match due to the lack of leading slash. OK.
I was already told to visit http://pylonshq.com/docs/en/0.9.7/configuration/#url-configuration

But ... I would really recommend adding a note about this change to
"What's new in Pylons 0.9.7"

http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779

(which, even worse, shows the old syntax in the section about
Routes).

Warning about missing leading slash could also make some sense....

--
----------------------------------------------------------------------
| Marcin Kasperski | (...) the only completion criterion for
| http://mekk.waw.pl | the Analysis and Design phases is - the date.
----------------------------------------------------------------------

Jonathan Vanasco

unread,
Nov 9, 2009, 2:40:55 PM11/9/09
to pylons-discuss
What version of Routes do you have installed?

This wasn't the case when that documentation was written.

It definitely does not requires the leading slash in Routes-1.10

the release log for routes is:

Version 1.11 (2009-09-28)
Version 1.10 (2008-11-24)

Marcin Kasperski

unread,
Nov 9, 2009, 2:58:59 PM11/9/09
to pylons-...@googlegroups.com
Jonathan Vanasco <jona...@findmeon.com>
writes:

> What version of Routes do you have installed?

1.11

> It definitely does not requires the leading slash in Routes-1.10

OK, I was not sure, someone on IRC suggested that the change was
introduced in 0.9.7. Still, it deserves some warning, I just spent
a few hours trying to debug what is going on ;-)


Reply all
Reply to author
Forward
0 new messages