fixed the undefined post on post.erb