Hey, you're right in your understanding. :allow_destroy will enable the _destroy param and in your use case, can't you send the _destroy in the request?
On Mon, Jan 27, 2020 at 10:30 PM Micah Geisel <originofsto...@gmail.com> wrote: > Hello, Pedro! Thank you for the message. > > My understanding is that :allow_destroy simply enables the _destroy param. > Is this not the case, and I'm reinventing existing functionality? > > > https://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html > > Rereading the documentation, it appears as though my understanding is > correct. If it's not, though, that would be great. I'd love to already have > this functionality! > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-core/5580a000-b636-4781-9649-7fedbb80432f%40googlegroups.com > . > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-core/CAA2Dq%2BMDUDCj9F7RYNqLd-O3oSETQ0HRPSCCYLhkDpYsK3GbBg%40mail.gmail.com.