Define association with :dependent => :destroy Then, when you click "replace with new" and send the form, it will be destroyed. Also, when parent record is destroyed, associated is destroyed too.
El sábado, 6 de febrero de 2016 10:37:56 (CET) loveand light escribió: Hi, I have a model that has a has_one association. WHen I click on it, it drops down an add form, which work womderfully. They only problem is that if I need to destroy this has_one relation, how do I do it? I looked around a bit for the answer to this on this board and even peeped the gem's code for a bit but I am still not sure how to do this. Is this possible? Thanks to all that make this wonderful gem possible. -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group.To unsubscribe from this group and stop receiving emails from it, send an email to activescaffold [email protected][1].To post to this group, send email to [email protected][2].Visit this group at https://groups.google.com/ group/activescaffold[3].For more options, visit https://groups.google.com/d/optout[4]. -------- [1] mailto:[email protected] [2] mailto:[email protected] [3] https://groups.google.com/group/activescaffold [4] https://groups.google.com/d/optout -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
