aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-05-16 16:11:34 +0900
committeryui-knk <spiketeika@gmail.com>2015-05-16 16:11:34 +0900
commit506360e9244df52d8fae499a69206676b0c88a64 (patch)
tree3e17bd5f7e35d084a4fff7c156e12e75f9cda90c /guides/source
parent34bc76999378ed16b7bc45726525ce39d7c25f81 (diff)
downloadrails-506360e9244df52d8fae499a69206676b0c88a64.tar.gz
rails-506360e9244df52d8fae499a69206676b0c88a64.tar.bz2
rails-506360e9244df52d8fae499a69206676b0c88a64.zip
[ci skip] Fix to a singular form (person has one contact_detail)
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/form_helpers.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md
index 853227e2a1..677c5ee74d 100644
--- a/guides/source/form_helpers.md
+++ b/guides/source/form_helpers.md
@@ -291,8 +291,8 @@ You can create a similar binding without actually creating `<form>` tags with th
```erb
<%= form_for @person, url: {action: "create"} do |person_form| %>
<%= person_form.text_field :name %>
- <%= fields_for @person.contact_detail do |contact_details_form| %>
- <%= contact_details_form.text_field :phone_number %>
+ <%= fields_for @person.contact_detail do |contact_detail_form| %>
+ <%= contact_detail_form.text_field :phone_number %>
<% end %>
<% end %>
```