File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -775,7 +775,7 @@ You might want to render a form with a set of edit fields for each of a person's
775
775
<%= form_with model: @person do |person_form| %>
776
776
<%= person_form.text_field :name %>
777
777
<% @person.addresses.each do |address| %>
778
- <%= person_form.fields_for address, index: address.id do |address_form|%>
778
+ <%= person_form.fields_for address, index: address.id do |address_form| %>
779
779
<%= address_form.text_field :city %>
780
780
<% end %>
781
781
<% end %>
@@ -972,7 +972,7 @@ This form allows users to remove addresses:
972
972
<ul>
973
973
<%= f.fields_for :addresses do |addresses_form| %>
974
974
<li>
975
- <%= addresses_form.check_box :_destroy%>
975
+ <%= addresses_form.check_box :_destroy %>
976
976
<%= addresses_form.label :kind %>
977
977
<%= addresses_form.text_field :kind %>
978
978
...
You can’t perform that action at this time.
0 commit comments