Processing Forms

Get familiar with how views and controllers pass the parameters

We'll cover the following

Flow of form processing

In the figure below, we can see how the various attributes in the model pass through the controller to the view, onto the HTML page, and back again into the model. The model object has attributes such as name, country, and password. The template uses helper methods to construct an HTML form to let the user edit the data in the model. Note how the form fields are named. The country attribute, for example, maps to an HTML input field with the name user[country].

Get hands-on with 1400+ tech skills courses.