changes to posts.rb and some views