mitsuhiko/flask — Issue #374: error in view.rst 
Author: anh
Created: 2012-01-04 04:33:54+00:00
State: open

view.rst:

app.add_url_rule('%s<%s:%s>' % (url, **pk, pk_type**), view_func=view_func,
methods=['GET', 'PUT', 'DELETE'])

It should be:

app.add_url_rule('%s<%s:%s>' % (url, **pk_type, pk**), view_func=view_func,
methods=['GET', 'PUT', 'DELETE'])