Created an index view and an index def in my BlogpostsController.