From e055990a3b10246c5014c2f658a714a5344d0b18 Mon Sep 17 00:00:00 2001 From: Dushan Despotovic Date: Mon, 11 Jul 2022 12:12:10 +0100 Subject: [PATCH] add link to new docs to form runner doc --- docs/form_runner.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/form_runner.md b/docs/form_runner.md index 23173c74b..cec88153f 100644 --- a/docs/form_runner.md +++ b/docs/form_runner.md @@ -19,3 +19,7 @@ ERB templates: Routes for each form page are generated by looping over each Page instance in each Form instance held by the form handler and defining a `GET` path. The corresponding controller method is also auto-generated with meta-programming via the same looping in `app/controllers/form_controller.rb` All form pages submit to the same controller method (`app/controllers/form_controller.rb#submit_form`) which validates and persists the data, and then redirects to the next form page that identifies as `routed_to` given the current case log state. + +## Form models and definition + +For information about the form model and related models (section, subsection, page, question) and how these relate to each other follow [this link](docs/form/form.md) \ No newline at end of file