modified post.rb after error