I just wanted to know how one would go about uploading a remote file url using Carrierwave in the Rails console.
I tried the following without any luck. I presume it
user = User.first user.remote_avatar = File.open(FILE_LOCATION) user.save
FILE_LOCATION can be
File.join(Rails.root, '/files/png-sample.png')
if file is found in a folder 'files' in rails project