Skip to content

Conversation

aazam-gh
Copy link
Contributor

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

@vercel
Copy link

vercel bot commented Oct 12, 2023

@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'
Copy link
Collaborator

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?

Copy link
Contributor Author

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
Copy link
Collaborator

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?

https://stackoverflow.com/a/44406252/844780

Copy link
Contributor Author

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>"
Copy link
Collaborator

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

Copy link
Contributor Author

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

@colbyfayock
Copy link
Collaborator

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

@aazam-gh
Copy link
Contributor Author

@colbyfayock I have made some changes based on the reviews :)

@colbyfayock
Copy link
Collaborator

looks great, thanks @aazam-gh

@colbyfayock colbyfayock merged commit 1467ba0 into cloudinary-community:main Oct 13, 2023
@colbyfayock
Copy link
Collaborator

@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

@colbyfayock
Copy link
Collaborator

@all-contributors please add @aazam-gh for code

@allcontributors
Copy link
Contributor

@colbyfayock

I've put up a pull request to add @aazam-gh! 🎉

@aazam-gh aazam-gh deleted the cloudruby branch October 13, 2023 16:13
@aazam-gh
Copy link
Contributor Author

@colbyfayock Thanks for merging. I have sent an email :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Example] Ruby - Uploading images

2 participants