It seems that you haven't created the method typesAction() in the PartiesController().