)
I have some cloudinary's photos and I would like to make a seed (in my rails app). I'm using Carrierwave.
In my seed, I try to put the cloudinary's url image :
Course.create! ({
photo: "fismpnq3zma80dc2ovjt.jpg"
)}
But it's don't work. What can I do ?
If I ask by console :
pry(main)> c = Course.first
....
pry(main)> c.photo
@cache_id=nil,
@file=nil,
@filename=nil,
....
@model=#<Way:0x00007f80e7a3a9c0
photo:nil,
....
@mounted_as=:photo,
@versions=nil>
In order to use the
create
method, the parameters need to be verified (by signature) before the SDK will save them.For example:
Please let me know if it works for you.
--Yakir