API Integration  in Rails