开发者

attachment_fu rmagick on phusion passenger

开发者 https://www.devze.com 2023-01-10 21:01 出处:网络
I am getting so much pain with setting up rmagick on Passenger . I’m developing a rails web application that has image processing feature using imagemagick. the image processing feature is working 10

I am getting so much pain with setting up rmagick on Passenger . I’m developing a rails web application that has image processing feature using imagemagick. the image processing feature is working 100% on development using mongrel, but once i deploy it to production which uses phusion passenger I get the error

uninitialized constant Technoweenie::AttachmentFu::Processors::RMagickProcessor

i have successfully installed the following gems:

1.) rmagick (2.13.1) 2.) imagemagick


this is the code from the model

has_attachment :content_type => :image,

      开发者_JS百科       :storage => :file_system,
             :processor => 'Rmagick',
             :resize_to => '300 x 400',
             :max_size => 2.megabytes,
             :thumbnails => { :thumb => [85, 95], :geometry => 'x50'}

0

精彩评论

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

关注公众号