I have a ruby on rails website that stores images via urls. I want to import these images into cloudinary using active storage using the console.
Currently, the cloudinary gem works on my console:
However, cloudinary using active storage does not:
profile = Profile.new
profile.avatar = profile.legacy_avatar.url(:full)
My model for Profile is here:
class Profile < ApplicationRecord
The above code does not work for some reason. Is there any way to store to active storage from the console?
Please sign in to leave a comment.