Replaced the Post: all method with the paginate method inside the function index on line 12.