Trying to get paperclip to refresh or reprocess..
Posted
by Trip
on Stack Overflow
See other posts from Stack Overflow
or by Trip
Published on 2010-06-08T17:32:05Z
Indexed on
2010/06/08
17:32 UTC
Read the original article
Hit count: 142
I have over time, changed the size for thumbs of the class Deal. Through these changes, users were uploading to the site, so there are few people who have different sized thumbs. I wanted to reprocress or refresh these, so I went to into my root and typed:
$> rake paperclip:refresh class=Deal
Did nothing for the thumb sizes.. Then I :
irb>> Deal.find(987).reprocess!
Returned this :
NoMethodError: undefined method `reprocess!' for #<Deal:0xb68a0988>
from /data/HQ_Channel/releases/20100607130346/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:260:in `method_missing'
from (irb):7
My deal class is this :
=> Deal(id: integer, organization_id: integer, deal: string, value: string, what: string, description: string, image_file_name: string, image_content_type: string, image_file_size: integer, image_updated_at: datetime, created_at: datetime, updated_at: datetime, deal_image_file_name: string, deal_image_content_type: string, deal_image_file_size: integer, deal_image_uploaded_at: datetime)
What can i do to have it reprocess the original to make the thumb the correct size in the current thumb size params?
© Stack Overflow or respective owner