search for: listtodestroy

Displaying 1 result from an estimated 1 matches for "listtodestroy".

2006 Aug 14
2
need a warning for destroy all
I wrote a small controller to find all the expired items and destroy them: @listtodestroy=Product.find(:all, :conditions => [''user_id = ? AND date_expires <= ?'', @user.id, Time.now]) for product in @listtodestroy product.destroy end It works fine but there''s no warning that everything is about to be removed like when I call product...