In this exercise I had Posts with many image attachments attached with attachment_fu and rmagick. I also had a bunch of old data that i wanted to import in using a rake task and finally all image attachments needed to be watermarked.
First my assumptions:
- “A Post can have many Image attachments”
- You have the attachment_fu plugin installed already
Here is how it’s done.