resources and posts_controller