OneID converted to Ruby and a working demo in the Rails environment