Web services with rails