I would recommend you to check heroku add-on solution which is https://addons.heroku.com/cloudinary. You will get 500MB for free and easy heroku integration.
For RoR app you can check: https://devcenter.heroku.com/articles/cloudinary#using-with-ruby-on-rails
There is also documentation for Nodejs and Django.