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