Skip to content
Browse files

Merge pull request #579 from alex-morega/fix-doc-views

Fix code example in pluggable views documentation
  • Loading branch information...
2 parents 43f4120 + 11c7461 commit ad304701025057475c19b7d79c9612f70488add4 @kennethreitz kennethreitz committed Aug 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/views.rst
2 docs/views.rst
@@ -36,7 +36,7 @@ based view you would do this::
users = User.query.all()
return render_template('users.html', objects=users)
- app.add_url_rule('/users/', ShowUsers.as_view('show_users'))
+ app.add_url_rule('/users/', view_func=ShowUsers.as_view('show_users'))
As you can see what you have to do is to create a subclass of
:class:`flask.views.View` and implement

0 comments on commit ad30470

Please sign in to comment.
Something went wrong with that request. Please try again.