Skip to content

Commit 176cdc6

Browse files
aykinwouterj
authored andcommitted
Update the_controller.rst
The sample code does not work due to an array o string conversion exception. The documentation needs to be updated to reflect the change
1 parent e15eb21 commit 176cdc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quick_tour/the_controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ And you can display the flash message in the template like this:
331331
.. code-block:: html+jinja
332332

333333
<div>
334-
{{ app.session.flashbag.get('notice') }}
334+
{{ app.session.flashbag.get('notice')[0] }}
335335
</div>
336336

337337
Final Thoughts

0 commit comments

Comments
 (0)