Complete the code to start a form for a model instance named @post.
<%= form_with model: [1] do |form| %>
<!-- form fields here -->
<% end %>The form_with helper uses the model: option with the instance variable @post to create a form tied to that model.
Complete the code to create a text field for the :title attribute inside the form builder.
<%= form.text_field [1] %>The text_field helper needs the attribute symbol :title to create a text input for that attribute.
Fix the error in the form helper call to correctly submit the form.
<%= form_with model: @post, [1]: true do |form| %>
<!-- form fields -->
<% end %>The correct option to make the form submit without a page reload is local: true.
Fill both blanks to create a label and a text field for the :email attribute.
<%= form.label [1] %> <%= form.text_field [2] %>
Both the label and the text field should use the same attribute symbol :email to connect them properly.
Fill all three blanks to create a form with a model, a label for :password, and a password field.
<%= form_with model: [1] do |form| %> <%= form.label [2] %> <%= form.password_field [3] %> <% end %>
The form is for the @user model. The label and password field both use the :password attribute symbol.