Ruby on rails 回形针配置|旧附件
我最近更改了回形针的配置: 新配置:Ruby on rails 回形针配置|旧附件,ruby-on-rails,ruby-on-rails-4,compression,paperclip,Ruby On Rails,Ruby On Rails 4,Compression,Paperclip,我最近更改了回形针的配置: 新配置: has_attached_file :scr, :styles => { :index => "215x165#", :show => "900" }, processors: [:thumbnail, :compression], :content_type => { :content_type => ["image/jpg", "image/
has_attached_file :scr, :styles => { :index => "215x165#", :show => "900" },
processors: [:thumbnail, :compression],
:content_type => { :content_type => ["image/jpg", "image/png"] }
has_attached_file :scr, :styles => { :index => "215x165#
旧配置:
has_attached_file :scr, :styles => { :index => "215x165#", :show => "900" },
processors: [:thumbnail, :compression],
:content_type => { :content_type => ["image/jpg", "image/png"] }
has_attached_file :scr, :styles => { :index => "215x165#
为了在我的应用程序上显示我需要的图片,我使用:show
属性
问题在于我的应用程序已经有很多图片,更改配置后,这些图片不再可见(因为上传时已完成裁剪和配置)
有没有办法重新保存这些图片
我试过了
Screen.find_each(&:save)
在那里“屏蔽”图片,但它不起作用
我遗漏了什么?试着运行
rake-paperclip:refresh CLASS=Screen
谢谢,我甚至不知道有这样的命令。正确的命令是heroku上的rake-paperclip:refresh CLASS=Screen
,您与服务器的套接字连接在超时期间未被读取或写入。空闲连接将被关闭。
有什么想法吗?