diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-24 19:26:40 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-24 19:26:40 +1100 |
commit | 48142a704a00b8296bc26ae571ae430bf55b90a0 (patch) | |
tree | 7a6039ef0de478498ed2c5beed1a55a7b3724364 | |
parent | 6b2ee4e8a049aa46aca39228e804c0fd4ffc57b4 (diff) | |
download | rails-48142a704a00b8296bc26ae571ae430bf55b90a0.tar.gz rails-48142a704a00b8296bc26ae571ae430bf55b90a0.tar.bz2 rails-48142a704a00b8296bc26ae571ae430bf55b90a0.zip |
Fixing up that _delete is no longer used on the form helper for accepts_nested_attributes_for, it is now _destroy
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 20e9916d62..157deebe40 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -395,7 +395,7 @@ module ActionView # accepts_nested_attributes_for :address, :allow_destroy => true # end # - # Now, when you use a form element with the <tt>_delete</tt> parameter, + # Now, when you use a form element with the <tt>_destroy</tt> parameter, # with a value that evaluates to +true+, you will destroy the associated # model (eg. 1, '1', true, or 'true'): # @@ -403,7 +403,7 @@ module ActionView # ... # <% person_form.fields_for :address do |address_fields| %> # ... - # Delete: <%= address_fields.check_box :_delete %> + # Delete: <%= address_fields.check_box :_destroy %> # <% end %> # <% end %> # @@ -476,14 +476,14 @@ module ActionView # end # # This will allow you to specify which models to destroy in the - # attributes hash by adding a form element for the <tt>_delete</tt> + # attributes hash by adding a form element for the <tt>_destroy</tt> # parameter with a value that evaluates to +true+ # (eg. 1, '1', true, or 'true'): # # <% form_for @person, :url => { :action => "update" } do |person_form| %> # ... # <% person_form.fields_for :projects do |project_fields| %> - # Delete: <%= project_fields.check_box :_delete %> + # Delete: <%= project_fields.check_box :_destroy %> # <% end %> # <% end %> def fields_for(record_or_name_or_array, *args, &block) |