Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_delete deprecated #2

Open
cuzic4n opened this issue Mar 10, 2010 · 1 comment
Open

_delete deprecated #2

cuzic4n opened this issue Mar 10, 2010 · 1 comment

Comments

@cuzic4n
Copy link

cuzic4n commented Mar 10, 2010

i.e.
from helpers: form_builder.hidden_field(:_delete) + link_to_function(name, "remove_child(this)")
from partial: <%= f.hidden_field :_delete, :class => 'delete' %>

I got the below
DEPRECATION WARNING: _delete is deprecated in nested attributes. Use _destroy instead..

So, I updated to _destroy and all is well.

@patshaughnessy
Copy link
Owner

Thanks for this... I originally used delete with Rails 2.3.3 when I wrote this, but it was later renamed to destroy in Rails 2.3.4. I'll update it soon and add some code to check if the user has Rails 2.3.3 or earlier. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants