diff options
author | Eric Hankins <ssilver@stormsilver.net> | 2013-06-19 13:41:41 -0500 |
---|---|---|
committer | Eric Hankins <ssilver@stormsilver.net> | 2013-06-19 13:41:41 -0500 |
commit | 71273430ce3f97785f688364f5495cc105cd1860 (patch) | |
tree | 0c093cc9c528e02dea60e74a0e8747fd3c46f455 /actionpack/lib/action_view | |
parent | bfc8ffa2327ac6e3949507e71dba04dd3a6c9131 (diff) | |
download | rails-71273430ce3f97785f688364f5495cc105cd1860.tar.gz rails-71273430ce3f97785f688364f5495cc105cd1860.tar.bz2 rails-71273430ce3f97785f688364f5495cc105cd1860.zip |
Fix name of nested attributes option include_id
The option to disable including a hidden ID field on a `fields_for` nested association was incorrectly documented as `hidden_field_id` instead of `include_id`
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 4 |
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? |