Added a scaffolded post using rails scaffolding. Then modified the controller, model and index.