diff options
author | Evan Farrar <evanfarrar@gmail.com> | 2009-05-07 15:24:07 -0500 |
---|---|---|
committer | Evan Farrar <evanfarrar@gmail.com> | 2009-05-07 15:24:07 -0500 |
commit | d3b3eb59b7dbfd9722bcbc378b1ab92d3f4cebb5 (patch) | |
tree | 15aff9140244f625148e24afb3b1f06bb3004d7c /railties/guides/source/form_helpers.textile | |
parent | d2e8cdea2ca78203cae606cf8402faa3858c4a7f (diff) | |
download | rails-d3b3eb59b7dbfd9722bcbc378b1ab92d3f4cebb5.tar.gz rails-d3b3eb59b7dbfd9722bcbc378b1ab92d3f4cebb5.tar.bz2 rails-d3b3eb59b7dbfd9722bcbc378b1ab92d3f4cebb5.zip |
Fixes some typos in the guides.
Diffstat (limited to 'railties/guides/source/form_helpers.textile')
-rw-r--r-- | railties/guides/source/form_helpers.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile index 22d24b0903..8b624241ff 100644 --- a/railties/guides/source/form_helpers.textile +++ b/railties/guides/source/form_helpers.textile @@ -736,7 +736,7 @@ will create inputs like As a general rule the final input name is the concatenation of the name given to +fields_for+/+form_for+, the index value and the name of the attribute. You can also pass an +:index+ option directly to helpers such as +text_field+, but it is usually less repetitive to specify this at the form builder level rather than on individual input controls. -As a shortcut you can append [] to the name and omit the +:index+ option. This is the same as specifing +:index => address+ so +As a shortcut you can append [] to the name and omit the +:index+ option. This is the same as specifying +:index => address+ so <erb> <% fields_for 'person[address][primary][]', address do |address_form| %> |