debugged error in post.rb