aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-06-19 12:15:55 -0700
committerYves Senn <yves.senn@gmail.com>2013-06-19 12:15:55 -0700
commitacd987eca93350454574fc3acb4cf389c81bff3a (patch)
tree0c093cc9c528e02dea60e74a0e8747fd3c46f455
parentbfc8ffa2327ac6e3949507e71dba04dd3a6c9131 (diff)
parent71273430ce3f97785f688364f5495cc105cd1860 (diff)
downloadrails-acd987eca93350454574fc3acb4cf389c81bff3a.tar.gz
rails-acd987eca93350454574fc3acb4cf389c81bff3a.tar.bz2
rails-acd987eca93350454574fc3acb4cf389c81bff3a.zip
Merge pull request #11017 from stormsilver/patch-1
Fix name of nested attributes option include_id
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb4
1 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 36dedf0676..f64c0ca30b 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -692,7 +692,7 @@ module ActionView
#
# Note that fields_for will automatically generate a hidden field
# to store the ID of the record. There are circumstances where this
- # hidden field is not needed and you can pass <tt>hidden_field_id: false</tt>
+ # hidden field is not needed and you can pass <tt>include_id: false</tt>
# to prevent fields_for from rendering it automatically.
def fields_for(record_name, record_object = nil, options = {}, &block)
builder = instantiate_builder(record_name, record_object, options)
@@ -1507,7 +1507,7 @@ module ActionView
#
# Note that fields_for will automatically generate a hidden field
# to store the ID of the record. There are circumstances where this
- # hidden field is not needed and you can pass <tt>hidden_field_id: false</tt>
+ # hidden field is not needed and you can pass <tt>include_id: false</tt>
# to prevent fields_for from rendering it automatically.
def fields_for(record_name, record_object = nil, fields_options = {}, &block)
fields_options, record_object = record_object, nil if record_object.is_a?(Hash) && record_object.extractable_options?