a = Food.find(:all, :select => “id, content”) result = Hash[*a.map {|e| e.attributes.values}.flatten]. is much slower than: a = Food.find ...
確定! 回上一頁