a bit more info about the root controller methods

This commit is contained in:
Alfredo Deza
2010-11-26 14:07:58 -05:00
parent 4cc94c9448
commit 6fd9501923

View File

@@ -138,6 +138,10 @@ but for now we have an *index* method and a *handle_form* one.
**index**: Is *exposed* as the root of the application, so anything that hits
'/' will touch this method.
Since we are doing some validation and want to pass any errors we might get to
the template, we set ``errors`` to receive anything that
``request.validation_error`` returns.
**handle_form**: It receives 2 parameters (*name* and *age*) that are validated
through the *SampleForm* schema class.