Switch to resource to manage rails apps