当我通过Carrierwave提交图像,并且缺少一个字段(即标题)时,缓存的图像将会出现…
<% if @post.avatar? %> <%= image_tag @post.avatar_url,:style => "width:300px" %> <%= f.hidden_field :avatar_cache %> <%= @post.avatar_url %> <% end %>@H_502_4@但是:avatar_cache字段为空.当我重新提交表单时,图像属性都不会向前移动,所以我必须重新选择图像. @H_502_4@问题类似于此. CarrierWave not saving upload after form redisplay但没有答案. @H_502_4@发生什么事?谢谢.