Agile Web Development with Rails 6: Prose does not match code (P1.0 PDF pp. 179)

Page 179 contains the following code snippet:

<%= form_with(model: order, local: true) do |form| %>
  <p>
    <%= form.label :name, "Name:" %>
    <%= form.text_field :name, size: 40 %>
  </p>
<% end %>

In the paragraph following the code snippet, the 3rd sentence contains a typo. It should be corrected as follows:

The first argument, module: order model: order, tells the helper which instance variable to use when naming fields and sending the form data back to the controller.

1 Like