From 3a598ae6d12ea626d8452f948d7c5998312ee300 Mon Sep 17 00:00:00 2001 From: bogdanvlviv Date: Mon, 27 Aug 2018 14:03:51 +0300 Subject: Add `:namespace` option to the api docs of `form_with` [ci skip] --- actionview/lib/action_view/helpers/form_helper.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actionview/lib/action_view/helpers/form_helper.rb') 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 :url is passed. # * :scope - The scope to prefix input field names with and # thereby how the submitted parameters are grouped in controllers. + # * :namespace - 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. # * :model - A model object to infer the :url and # :scope by, plus fill out input field values. # So if a +title+ attribute is set to "Ahoy!" then a +title+ input -- cgit v1.2.3