Modified Post.rb file