I'm trying to add a caption below my cloudinary image. On the cloudinary website, I've added my caption under the "edit metadata" field, but I can't figure out how to retrieve it.
My controller:
require 'cloudinary'
results = Cloudinary::Api.resources(:type => :upload)
resources = results["resources"]
@ids = resources.map {|res| res["public_id"]}
My view:
<% @ids.each do |id| %>
<%= cl_image_tag (id) %>
**insert caption here**
<% end %>