rails api for returning ip info