summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-06-13 07:18:40 -0700
committerChris McDonough <chrism@plope.com>2012-06-13 07:18:40 -0700
commit22d13cca116df2c9b4b9015d873bcc53a362731c (patch)
tree9f6a4537667fd1498fc9de65ddda98e25312e767 /docs
parent0487d5e05dd61d6d7482212d40fb5884e06f582a (diff)
parent1aa978c074afce7f821634e5aa8366caa07ee437 (diff)
downloadpyramid-22d13cca116df2c9b4b9015d873bcc53a362731c.tar.gz
pyramid-22d13cca116df2c9b4b9015d873bcc53a362731c.tar.bz2
pyramid-22d13cca116df2c9b4b9015d873bcc53a362731c.zip
Merge pull request #610 from fabianbuechler/patch-1
Fixed errors in URL dispatch docs in "Using a Route Prefix to Compose Applications" section
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/urldispatch.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst
index acbccbdfd..ecf3d026a 100644
--- a/docs/narr/urldispatch.rst
+++ b/docs/narr/urldispatch.rst
@@ -954,7 +954,7 @@ will be prepended with the first:
from pyramid.config import Configurator
def timing_include(config):
- config.add_route('show_times', /times')
+ config.add_route('show_times', '/times')
def users_include(config):
config.add_route('show_users', '/show')
@@ -966,7 +966,7 @@ will be prepended with the first:
In the above configuration, the ``show_users`` route will still have an
effective route pattern of ``/users/show``. The ``show_times`` route
-however, will have an effective pattern of ``/users/timing/show_times``.
+however, will have an effective pattern of ``/users/timing/times``.
Route prefixes have no impact on the requirement that the set of route
*names* in any given Pyramid configuration must be entirely unique. If you
@@ -981,7 +981,7 @@ that may be added in the future. For example:
from pyramid.config import Configurator
def timing_include(config):
- config.add_route('timing.show_times', /times')
+ config.add_route('timing.show_times', '/times')
def users_include(config):
config.add_route('users.show_users', '/show')