aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-11-30 11:23:37 -0800
committerVijay Dev <vijaydev.cse@gmail.com>2011-11-30 11:23:37 -0800
commit0092f0612d28ccdbba65bfc591d7fc2ff630b121 (patch)
treeecef3edec52d8d71d05637b68d80d0f5cbb49202 /railties
parent9811c3624a3f5881069093ee55d53be2457d4c03 (diff)
parent331080a14fea1525e10258528a327390b7199a53 (diff)
downloadrails-0092f0612d28ccdbba65bfc591d7fc2ff630b121.tar.gz
rails-0092f0612d28ccdbba65bfc591d7fc2ff630b121.tar.bz2
rails-0092f0612d28ccdbba65bfc591d7fc2ff630b121.zip
Merge pull request #3786 from nashby/add-namespace-to-form
update guides for the namespace option in form helpers
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/form_helpers.textile2
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+