Rails Delete Child pada orang tua hapus

class Widgets < ActiveRecord::Base
  has_many :whatevers, :dependent => :destroy
end
Loriel Desamito