posts_controller.rb Like 書き換え

@posts = Post.where("created_at like ?", "%#{i}%").order("created_at
DESC")
============================
@posts = Post.where("created_at like '%#{i}%'").order("created_at DESC")