How to crop image on upload with Rails, Carrierwave and Minimagick?

后端 未结 2 1989
北恋
北恋 2021-02-04 19:35

I have read:

  • Undefined Method crop! Using Carrierwave with MiniMagick on rails 3.1.3
  • Carrierwave Cropping
  • http://pastebin.com/ue4mVbC8
2条回答
  •  伪装坚强ぢ
    2021-02-04 19:58

    In #cropper your crop_h is not initialized(you double initialize crop_y instead). In #crop error is exactly what error message said - you don't have defined crop_x for Project class.

提交回复
热议问题