Update resposnes in ruby