Displaying 1 result from an estimated 1 matches for "destrou".
Did you mean:
destroy
2006 Jul 23
8
destroy vs delete
...ng the object and
calling destroy<http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000866>(all
the callbacks are the triggered). If an array of ids is provided, all
of them are destroyed."
in http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000866
I am guessing destrou uses the relationships in your model file to delete
the has_one and has_many relationships and delete only deletes the current
object
is this true?
cheers dion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/...