aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-08-27 21:47:16 +0900
committerGitHub <noreply@github.com>2018-08-27 21:47:16 +0900
commit7e881a18d945d13f82619bd059569ecc0abbf17c (patch)
treea2771f1b52867e1d98fef7136f0ddb5521f191c0 /actionview/lib/action_view/helpers/form_helper.rb
parent6d5eefd453c641c317f3cdfa1286f07cfc5b11e7 (diff)
parent3a598ae6d12ea626d8452f948d7c5998312ee300 (diff)
downloadrails-7e881a18d945d13f82619bd059569ecc0abbf17c.tar.gz
rails-7e881a18d945d13f82619bd059569ecc0abbf17c.tar.bz2
rails-7e881a18d945d13f82619bd059569ecc0abbf17c.zip
Merge pull request #33727 from bogdanvlviv/follow-up-33523
Follow up #33523 [ci skip]
Diffstat (limited to 'actionview/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/form_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb
index 07f3d98322..6e769aa560 100644
--- a/actionview/lib/action_view/helpers/form_helper.rb
+++ b/actionview/lib/action_view/helpers/form_helper.rb
@@ -590,6 +590,9 @@ module ActionView
# Skipped if a <tt>:url</tt> is passed.
# * <tt>:scope</tt> - The scope to prefix input field names with and
# thereby how the submitted parameters are grouped in controllers.
+ # * <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 generated HTML id.
# * <tt>:model</tt> - A model object to infer the <tt>:url</tt> and
# <tt>:scope</tt> by, plus fill out input field values.
# So if a +title+ attribute is set to "Ahoy!" then a +title+ input