ruby on rails - undefined method `before_pdf_post_process' for Image:Class -


i using mongodb rails 4, beginner. getting "undefined method `before_pdf_post_process' image:class", when try upload pdf/text_files/videos . using "mongoid-paperclip" uploading.

how include "processor code" in code.

please me sort error @ earliest.

thanks in advance.

evidently op had different issue, top hit on google, , received same error message. me, solution found here:

https://github.com/thoughtbot/paperclip/issues/1340

per issue-report: "you need put validation code after attachment declaration. these methods somehow not accessible, until 'has_attached_file' line."

i moved validation line below "has_attached_file" section in model, , error went away.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -