aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-12-01 01:06:24 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-12-01 01:42:54 +0530
commita72839bc9dc5fb3d56e79f7dc7f85975550d6fde (patch)
tree3d178b30dbdd364465c1be672eda98a9cc04cfe0
parent04b4fe77c925c0a3eb718254fac9c8ab403c37a3 (diff)
downloadrails-a72839bc9dc5fb3d56e79f7dc7f85975550d6fde.tar.gz
rails-a72839bc9dc5fb3d56e79f7dc7f85975550d6fde.tar.bz2
rails-a72839bc9dc5fb3d56e79f7dc7f85975550d6fde.zip
minor typo fix
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb2
-rw-r--r--railties/guides/source/form_helpers.textile2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 6c97d75922..e674e12509 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -160,7 +160,7 @@ module ActionView
# here a named route directly as well. Defaults to the current action.
# * <tt>:namespace</tt> - A namespace 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.
+ # with underscore on the generated HTML id.
# * <tt>:html</tt> - Optional HTML attributes for the form tag.
#
# Also note that +form_for+ doesn't create an exclusive scope. It's still
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile
index 3658d1361f..64eb2d8f36 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. 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.
+# 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 generated 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+