Updated post.rb file