sites
sites

Reputation: 21795

Must specify CLASS - Paperclip Watermark

I am using watermark with paperclip as a guide to add a watermark to my images.

In other post, I read I could use

rake paperclip:refresh Model RAILS_ENV=production

I am trying in development environment:

rake paperclip:refresh Model

And I am having this error

rake aborted!
Must specify CLASS

I tried with both of my classes Image and the one that is linked with Image.

Upvotes: 2

Views: 463

Answers (1)

Boris Barroso
Boris Barroso

Reputation: 1812

Just do this if you are in POSIX

export CLASS=Model
export STYLES=style1,style2
rake paperclip:refresh:thumbnails

Upvotes: 3

Related Questions