Added view method to PostsController