diff options
author | Vasiliy Ermolovich <younash@gmail.com> | 2011-11-28 20:37:08 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2011-11-28 20:37:08 +0300 |
commit | 331080a14fea1525e10258528a327390b7199a53 (patch) | |
tree | 6995d3c3e1ef9d40421d0753bf11e7104b75ee95 /railties/guides/source/form_helpers.textile | |
parent | 25592569638689f9d863f21862b1f23b5b390833 (diff) | |
download | rails-331080a14fea1525e10258528a327390b7199a53.tar.gz rails-331080a14fea1525e10258528a327390b7199a53.tar.bz2 rails-331080a14fea1525e10258528a327390b7199a53.zip |
update 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 821bb305f6..3658d1361f 100644 --- a/railties/guides/source/form_helpers.textile +++ b/railties/guides/source/form_helpers.textile @@ -229,7 +229,7 @@ The corresponding view +app/views/articles/new.html.erb+ using +form_for+ looks There are a few things to note here: # +@article+ is the actual object being edited. -# There is a single hash of options. Routing options are passed in the +:url+ hash, HTML options are passed in the +:html+ hash. +# There is a single hash of options. Routing options are passed in the +:url+ hash, HTML options are passed in the +:html+ hash. Also you can provide a +:namespace+ option for your form to ensure uniqueness of id attributes on form elements. The namespace attribute will be prefixed with underscore on the generate HTML id. # The +form_for+ method yields a *form builder* object (the +f+ variable). # Methods to create form controls are called *on* the form builder object +f+ |