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

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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -