2017-09-17 117 views
0

我有一些問題。而且我知道,我並不孤單。我試圖用carrierwave和minimagic在我的項目(博客)添加圖像,但它的回報是:圖像平移丟失:MiniMagic和Carrierwave on Rails(Windows)

"ru.errors.messages.mini_magick_processing_error" 

我媒體鏈接instelled ImageMagick的我的機器上,之後安裝寶石。

我的形式:

<%= bootstrap_form_for @post, :html => { multipart: true } do |f| %> 
<div class="form-group"> 
    <%= f.file_field :image %> 
</div> 

而且我的模型:

class Post < ApplicationRecord 
    mount_uploader :image, ImageUploader 
    validates :title, :summary, :body, presence: true 
end 

我從來沒有使用過這種寶石,現在我真的不知道該怎麼辦。我安裝ImageMagic的最新版本。我聽說它是​​Windows上流行的一個問題。願有人能幫助一個學生嗎?

Screenshot of the error

+0

來吧傢伙。也許一些想法或smth?超過3天我找不​​到答案。 (((( –

回答

0

看到this類似的問題和this(專爲Windows,你可能需要這個包)

相關問題