-
Notifications
You must be signed in to change notification settings - Fork 85
Added Example to Upload Images using Ruby SDK #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@aazam-gh is attempting to deploy a commit to the Cloudinary DevX Team on Vercel. A member of the Team first needs to authorize it. |
|
||
gem 'cloudinary' | ||
group :development do | ||
gem 'dotenv-rails' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious about this one, it imports in the ruby file as dotenv
, is that accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this will allow us to use env
* Install the project dependencies with: | ||
|
||
``` | ||
gem install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gem install
doesnt seem to install all the dependencies, looks like you need to use bundler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the user needs to have bundler already installed for gem install to work.
|
||
* Create an environment variable file `.env` and inside add: | ||
``` | ||
CLOUDINARY_CLOUD_NAME="<Your Cloud Name>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add the API KEY and API SECRET to the instructions, not just the cloud name, for getting the local example running
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted. I'll add the two as well
hey @aazam-gh got it running and worked great! have a few comments here first before we merge it in. let me know what you think |
@colbyfayock I have made some changes based on the reviews :) |
looks great, thanks @aazam-gh |
@aazam-gh congrats on the merged PR! since it was merged during Hacktoberfest, you're eligible for some free swag. Please email [email protected] with your Github username and a link to this PR where we'll follow up with you there. https://cloudinary.com/blog/hacktoberfest-celebrate-open-source-sdks |
@all-contributors please add @aazam-gh for code |
I've put up a pull request to add @aazam-gh! 🎉 |
@colbyfayock Thanks for merging. I have sent an email :D |
Fix #68
Similar to node sdk example to upload images to cloudinary. An example has been made for uploading images using Cloudinary Ruby SDK.
README file describes simple steps to get started on adding cloudinary to your Gemfile