diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-17 17:42:00 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 17:42:00 +0900 |
commit | 7931951ccd7e11954442cb6729d19f15855e6a8b (patch) | |
tree | b59f8cc18a00cfe6a77db0d620e20793c37b83fd | |
parent | 3eab541a215e45f780b04b4619481014bb8e66f1 (diff) | |
parent | b1ca79514e3966b1e925aa34ec25ac8d3e78ae19 (diff) | |
download | rails-7931951ccd7e11954442cb6729d19f15855e6a8b.tar.gz rails-7931951ccd7e11954442cb6729d19f15855e6a8b.tar.bz2 rails-7931951ccd7e11954442cb6729d19f15855e6a8b.zip |
Merge pull request #33898 from tkoyama1988/form_helpers_readable
Improve readability in form helpers guide [ci skip]
-rw-r--r-- | guides/source/form_helpers.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md index 3660772fb9..b5e2c49487 100644 --- a/guides/source/form_helpers.md +++ b/guides/source/form_helpers.md @@ -775,7 +775,7 @@ You might want to render a form with a set of edit fields for each of a person's <%= form_with model: @person do |person_form| %> <%= person_form.text_field :name %> <% @person.addresses.each do |address| %> - <%= person_form.fields_for address, index: address.id do |address_form|%> + <%= person_form.fields_for address, index: address.id do |address_form| %> <%= address_form.text_field :city %> <% end %> <% end %> @@ -972,7 +972,7 @@ This form allows users to remove addresses: <ul> <%= f.fields_for :addresses do |addresses_form| %> <li> - <%= addresses_form.check_box :_destroy%> + <%= addresses_form.check_box :_destroy %> <%= addresses_form.label :kind %> <%= addresses_form.text_field :kind %> ... |