Added a scaffolded post using rails scaffolding. Then modified the controller.