You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
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.
The text was updated successfully, but these errors were encountered: