0

I use Cloudinary to store images. Images are uploaded via ckEditor(WYSIWYG) with the help of Carrierwave. Old approach, before using Cloudinary, is below. In new approach best I manage to make is just direct link which is working.

 require "open-uri"

 def old_approach
   devel_root_url = "http://localhost:3000"
   image open("#{devel_root_url}#{@publication.image.url(:thumb_for_new_publication)}")
 end

 def new_approach
   image open("http://res.cloudinary.com/long_path_/41bea7233824aba932adab8fb6f29d54371fa9d7_development.jpg"")
 end

Question is how PRAWN can bring pictures from Cloudinary that have been uploaded via ckEditor to Cloudinary?

Did anyne had this issue before?

4

0 回答 0