我有一个带有回形针图像附件的模型,我正在为图像添加新样式,并希望为旧照片生成新样式。
我正在做:
rake paperclip:refresh CLASS=Blog
我收到了错误
No such file or directory - /tmp/paperclip-reprocess
在github页面上它显示了命令,我也在StackOverflow上的几个问题上找到了它。我也试过这个命令:
rake paperclip:refresh:missing_styles CLASS=Blog
rake paperclip:refresh:missing_styles
没有结果。
编辑:添加了跟踪
Errno::ENOENT: No such file or directory - /tmp/paperclip-reprocess20140416-25763-5k19nh
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip- 2.4.2/lib/paperclip/attachment.rb:262:in `generate_fingerprint'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/attachment.rb:229:in `fingerprint'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/interpolations.rb:137:in `fingerprint'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/interpolations.rb:34:in `block (2 levels) in interpolate'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/interpolations.rb:33:in `gsub'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/interpolations.rb:33:in `block in interpolate'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/interpolations.rb:32:in `each'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/interpolations.rb:32:in `inject'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/interpolations.rb:32:in `interpolate'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/attachment.rb:408:in `interpolate'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/attachment.rb:168:in `path'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/storage/filesystem.rb:47:in `block in flush_writes'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/storage/filesystem.rb:37:in `each'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/storage/filesystem.rb:37:in `flush_writes'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/attachment.rb:190:in `save'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip/attachment.rb:300:in `reprocess!'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/tasks/paperclip.rake:35:in `block (5 levels) in <top (required)>'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip.rb:142:in `block in each_instance_with_attachment'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip.rb:141:in `each'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/paperclip.rb:141:in `each_instance_with_attachment'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/tasks/paperclip.rake:34:in `block (4 levels) in <top (required)>'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/tasks/paperclip.rake:33:in `each'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/gems/paperclip-2.4.2/lib/tasks/paperclip.rake:33:in `block (3 levels) in <top (required)>'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/bin/ruby_executable_hooks:15:in `eval'
/home/user/.rvm/gems/ruby-1.9.3-p484@gemset/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => paperclip:refresh => paperclip:refresh:thumbnails
(See full trace by running task with --trace)