【发布时间】:2010-10-27 16:02:31
【问题描述】:
我无法找到将使用 RMagick 创建的图像保存在回形针附件中的方法。
imageList = Magick::ImageList.new
imageList.new("images/apple.gif", "images/overlay.png")
...
picture = imageList.flatten_images
我在一个有附件的模型中
has_attached_file :picture,
:url => ...,
:path => ...
我只想将 imageList.flatten_images 返回的图像保存为我的模型的图片。
请问有谁知道如何轻松搞定?
谢谢
【问题讨论】:
标签: ruby-on-rails ruby paperclip rmagick