Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.47 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.47 KB

OfferUp

Cloudinary Setup

Since you have columns in your tables that represent image uploads, you need to configure the application to use your Cloudinary account.

Cloudinary is an image hosting service. Sign up for an account if you don't already have one, and then find your Cloud name, API Key, and API Secret in your dashboard.

We don't want to paste these secrets directly into our code (because then they will show up on GitHub). Instead, follow these instructions to create environment variables containing your credentials. Use the names CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, and CLOUDINARY_API_SECRET to contain your credentials.

Restart your server and your forms with image uploads should now work!

Heroku Deployment

Deploy

<%= cl_image_tag @item.image, class: "img-fluid" %>
<%= item.title %> - <%= number_to_currency(item.price) %>

<%= item.description %>

Last updated <%= time_ago_in_words(item.updated_at) %> ago