Fixed bug in post.rb