added to posts.rb and posts.erb