我在使用回形針GEM時出現以下錯誤。我嘗試上傳JPG/PNG,但都不起作用。這似乎是我得到驗證錯誤..任何幫助將是真棒謝謝!圖像包含的內容不是它們報告的內容
Image has contents that are not what they are reported to be
class Listing < ActiveRecord::Base
has_attached_file :image, :styles => { :medium => "200x", :thumb => "100x100>" }, :default_url => "404.jpg"
validates_attachment_content_type :image, :content_type => /\Aimage\/.*\Z/
end