Added form partial for posts and fixed error with update method.