Created Posts controller and changed post>index and post>show