created the controller for the ruby application