Prior to starting the WODs, please study the play-example-form system. Be sure to watch my screencast in the readings.
Then, do the following to familiarize yourself with the code:
- Download the system, run it, and play with the form in your browser, submitting both correct and incorrect input values.
- Trace through the code that is executed when a form is submitted, starting with the routes file, then to the Application controller method, then to the various classes and methods used to process the form.
- Display an empty form in the browser, then use Chrome Developer Tools to inspect the source. Be sure you understand how this HTML source was generated from the various view templates.
- Trace the code that is executed when retrieving a pre-existing student using http://localhost:9000/?id=1, starting with the routes file, then to the Application controller method, then to the various classes and methods used to process the request.
- Once a pre-existing student is displayed, use Chrome Developer Tools to inspect the source. Be sure you understand how this HTML source was generated from the various view templates.