Rest api with Ruby & Rails