开发者

Paper Clip Not Saving alternate styles

开发者 https://www.devze.com 2023-03-26 10:49 出处:网络
Paperclip is not saving any changes in the uploaded images but is saving original perfectly well. MY understanding from all the logs is that it cannot access ImageMagick... I have install RMagick alon

Paperclip is not saving any changes in the uploaded images but is saving original perfectly well. MY understanding from all the logs is that it cannot access ImageMagick... I have install RMagick along with paperclip. Somehow cannot find why is this happening? Can someone help me with how to check is paperclip is able to access ImageMagick.

Model:

has_attached_file :photo,
  :style开发者_JAVA百科 => {
    :original => "500x500",
    :small => "200x200"
  }

attr_accessible :name, :photo
attr_protected :photo_file_name, :photo_content_type, :photo_size

gemfile:

gem 'paperclip', '2.3.16'
gem 'rmagick'


Stupid Mistake!!!

:style => {

should be

:styles => {

Sorry for bothering!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号