I don't think you need to @controller = TeamsController.new unless you have made changes outside of the controller.