jferreira / rails_DRONE

0 stars 0 forks source link

as a operator i want to be able to upload a image [ jpg, png, gif ] #81

Open jferreira opened 5 years ago

jferreira commented 5 years ago

id: 1, title: "Basic", description: "Experience Drone guy, for 1h of filming and editing", url_image: "https://thumbs.gfycat.com/BareHighAxisdeer-size_restricted.gif", price: 0, user_id: 6, created_at: Sun, 11 Nov 2018 00:53:49 UTC +00:00, updated_at: Sun, 11 Nov 2018 00:53:49 UTC +00:00, photo: nil>

rogermutt commented 5 years ago

Solved.

The issue was, in fact, a good thing:

They cloudinary key is never uploaded to GitHub hence why it wasn't found.

If you want to test it in your machine locally clone origin master and then:

touch .env echo '.env*' >> .gitignore

Add the gem: gem 'cloudinary'

then "bundle install"

And then update your .env file with your Cloudinary key as follows:

CLOUDINARY_URL=cloudinary://298522699261255:Qa1ZfO4syfbOC-***8 The above is only a placeholder. A real key needs to be used.

jferreira commented 5 years ago

@dharamw we both have to follow this for the image uploads