Added the edit action to Posts controller.