关于如何实现这一点的任何想法?也许循环遍历数组并运行一些破坏查询.任何人都可以指点我吗?谢谢
deletable_words = [ 'PHP','c++' ] objs = Word.find(:all,:conditions => [ "words.word IN (?)",deletable_words]) objs.each { |o| o.destroy }