is there an easy way to add confirm dialog box that would appear when user clicks link_to_remove_association ?
cocoon gem is really great, I wonder if it has such a ready option ?? if not, can I use jQuery to cancel or let go the event ?
Thanks,
You should be able to simply <%= link_to_remove_association 'Remove', f, data: { confirm: 'Are you sure that you want to remove these nested fields?' } %>
, no?
= link_to_remove_association "remove item", f, data: {confirm: 'Are you sure?'}
tested working :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With