aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-08-27 14:03:51 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-08-27 15:40:09 +0300
commit3a598ae6d12ea626d8452f948d7c5998312ee300 (patch)
tree8ebc7902e3be4535d89c859ae15dcb9734d5d4ee /actionview/lib
parent318ccf5b3b35dcf09b640fa3ce49673612134e65 (diff)
downloadrails-3a598ae6d12ea626d8452f948d7c5998312ee300.tar.gz
rails-3a598ae6d12ea626d8452f948d7c5998312ee300.tar.bz2
rails-3a598ae6d12ea626d8452f948d7c5998312ee300.zip
Add `:namespace` option to the api docs of `form_with` [ci skip]
Diffstat (limited to 'actionview/lib')
-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