testing using rails as an api, and getting the content after deploying on heroku