在我的应用程序中,我使用imgkit gem来获取当前页控制器代码的快照
kit = IMGKit.new(render_to_string)
t = kit.to_img(:png)
file_path = '/home/myapp/file.png'
file = kit.to_file(file_path)工作正常(图像保存在myapp/file.png中)。
现在我的问题
file.png希望我能清楚地解释我的问题,我不是用S3来存储,而是用本地机器
我使用https://github.com/csquared/IMGKit作为我的参考
发布于 2014-05-15 14:53:43
file_path = "/home/myapp/#{Time.now}file.png“应该这样做
https://stackoverflow.com/questions/23678313
复制相似问题