aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/form_helpers.md
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikac.hu>2012-09-07 00:09:56 -0400
committerPrem Sichanugrist <s@sikac.hu>2012-09-17 15:55:17 -0400
commit5e2866cc3445646d8df049413aa5fbf03fa605ef (patch)
treecdb9f799120a0b7516309affa9248e6f0980fe58 /guides/source/form_helpers.md
parent7a0dad25f3be77211160560dc76a8f37963051d7 (diff)
downloadrails-5e2866cc3445646d8df049413aa5fbf03fa605ef.tar.gz
rails-5e2866cc3445646d8df049413aa5fbf03fa605ef.tar.bz2
rails-5e2866cc3445646d8df049413aa5fbf03fa605ef.zip
No more Textile guide generation support
Diffstat (limited to 'guides/source/form_helpers.md')
-rw-r--r--guides/source/form_helpers.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md
index e8e8a97791..ec1f1d4df1 100644
--- a/guides/source/form_helpers.md
+++ b/guides/source/form_helpers.md
@@ -201,7 +201,7 @@ Dealing with Model Objects
### Model Object Helpers
-A particularly common task for a form is editing or creating a model object. While the `*_tag` helpers can certainly be used for this task they are somewhat verbose as for each tag you would have to ensure the correct parameter name is used and set the default value of the input appropriately. Rails provides helpers tailored to this task. These helpers lack the <notextile>_tag</notextile> suffix, for example `text_field`, `text_area`.
+A particularly common task for a form is editing or creating a model object. While the `*_tag` helpers can certainly be used for this task they are somewhat verbose as for each tag you would have to ensure the correct parameter name is used and set the default value of the input appropriately. Rails provides helpers tailored to this task. These helpers lack the _tag suffix, for example `text_field`, `text_area`.
For these helpers the first argument is the name of an instance variable and the second is the name of a method (usually an attribute) to call on that object. Rails will set the value of the input control to the return value of that method for the object and set an appropriate input name. If your controller has defined `@person` and that person's name is Henry then a form containing: