アプリケーションを Google クラウドにデプロイすると、このエラーが発生するという問題があります
報告されているものとは異なるコンテンツを含む
ローカルでは問題なく動作します!私はすでにcommand_pathを使用しようとしました。だから、私は次に何をしなければならないのか本当にわかりません...
これは私のモデルです
has_mongoid_attached_file :image,
:styles => { :large => "380x380!" , :medium => "240x240", :small => "120x120!" },
:storage => :fog,
:fog_public => true,
:fog_directory => 'XXXX',
:path => "images/:id/:style/:basename.:extension",
:fog_credentials => { :provider => 'Google',
:google_storage_access_key_id => 'XXXXX',
:google_storage_secret_access_key => 'XXXXX'}
validates_attachment_content_type :image, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif"]
ご尽力いただきありがとうございます。皆さんが私を助けてくれることを願っています