Howto make Paperclip to re-process images w/o deleting images

If you add new styles into your Image model and want Paperclip to process those styles w/o deleting existing images, you simply goes into your RoR console and type:

Image.all.each &:reprocess!
Advertisements

About Jones Lee

Nothing much about me..

One response to “Howto make Paperclip to re-process images w/o deleting images

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: