post.rb small improvments