に、私は、データベースからクリーンな結果を得ることができないデータベースから選択し、ID 6を持つユーザーのためのrails3
module PagesHelper
def list
wishes = WishList.select("content").where("user_id = #{@user.id}")
wishes.each do |wish|
puts wish.fetch_hash
end
end
end
結果:
[#<WishList content: "test3">, #<WishList content: "test4">, #<WishList content: "test5">]
しかし、私は次のようにリストを取得したい: TEST3、私はそれを得ることができますどのように洪水なく、test4、test5?