ruby on rails - Paperclip - Using custom watermark with dynamic path -


i'm trying create custom path using this:

has_attached_file :avatar,     :processors => [:watermark],     :styles => lambda { |attachment| {         :medium => {             :geometry       => "300x300>",             :watermark_path => customer.find(attachment.instance.customer_id).signature.path         },         :thumb => "100x100>",     } } 

this working fine customer.find(attachment.instance.customer_id).signature.path static path image, in case throwing exception

paperclip::errors::infiniteinterpolationerror in  api::ipad::v1::imagescontroller#create 

can tell how ignore exception ?

usually error comes not explicity defining :url , :path options attachment, might try setting options , see if interpolation error goes away.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

How to provide Authorization & Authentication using Asp.net, C#? -