Change root_path to posts_path
Refactore PostsController