Hi Anatoliy, On Thu, Jul 22, 2010 at 6:42 AM, Anatoliy Lysenko <[email protected]> wrote: > I need method to destroy object in memory and remove it from database > when parent object is saved.
The notion of children that exiss prior to the parent's creation is a bit odd, but assuming that you have some way to identify them other than session variables, you could use an after_create method in your parent model to destroy the child objects. HTH, Bill -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

