J
John O'gara
I'm wondering is it possible to attach a file through script/console?
I'm wondering is it possible to attach a file through script/console?
Luis said:image = Image.newstorage => File.open('/path/to/my/image.png', rb))
Where:
Image is your model
storage is your paperclip definition of has_attachment.
HTH,
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.