require yaml in posts.rb