undefined method `each' forエラー 備忘録 - Qiita

<% post.each do |p| %><%= p.text %>みたいな感じでeach文を回して要素を一つずつ表示した際にundefined method `each' for というエ…