@@ -30,7 +30,7 @@ class Product < ActiveRecord::Base
pictures = ProductPicture.find_by_sql("select * from product_pictures where pic_type=0 and product_id = #{self.id}")
# 创建商品图片
pictures.each do |u|
- u.remove
+ u.delete
end