From b9da38ec7ebc1a94b3b437c9f666e4d36493c62e Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Fri, 6 May 2016 14:21:49 +0100 Subject: [PATCH] correct code typo in Named Resource --- docs/web.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/web.rst b/docs/web.rst index 09dbc661efb..d9035be3762 100644 --- a/docs/web.rst +++ b/docs/web.rst @@ -177,7 +177,7 @@ Routes can also be given a *name*:: Which can then be used to access and build a *URL* for that resource later (e.g. in a :ref:`request handler `):: - >>> request.app.named_resource['root'].url(query={"a": "b", "c": "d"}) + >>> request.app.router.named_resources()['root'].url(query={"a": "b", "c": "d"}) '/root?a=b&c=d' A more interesting example is building *URLs* for :ref:`variable