- map.connect('/forums/{forum_id}', controller='forum', action='threads')
- map.connect('/forums/{forum_id}/threads/{thread_id}', controller='forum', action='posts')
+ map.connect(r'/forums/{forum_id:\d+}', controller='forum', action='threads')
+ map.connect(r'/forums/{forum_id:\d+}/threads/{thread_id:\d+}', controller='forum', action='posts')
+
+ map.connect(r'/forums/{forum_id:\d+}/write', controller='forum', action='write_thread')
+ map.connect(r'/forums/{forum_id:\d+}/threads/{thread_id:\d+}/write', controller='forum', action='write')